Product documentation Docs
    • English
    • Deutsch
    • 日本語
    • 한국어
    • Français
  • More Sites
    • Now Community
    • Developer Site
    • Knowledge Base
    • Product Information
    • ServiceNow.com
    • Training
    • Customer Success Center
    • ServiceNow Support Videos
  • Log in

Product documentation

  • Home
How search works:
  • Punctuation and capital letters are ignored
  • Special characters like underscores (_) are removed
  • Known synonyms are applied
  • The most relevant topics (based on weighting and matching to search terms) are listed first in search results
Topics are ranked in search results by how closely they match your search terms
  • A match on the entire phrase you typed
  • A match on part of the phrase you typed
  • A match on ALL of the terms in the phrase you typed
  • A match on ANY of the terms in the phrase you typed

Note: Matches in titles are always highly ranked.

  • Release version
    Table of Contents
    • Now Platform capabilities
Table of Contents
Choose your release version
    Home Orlando Now Platform Capabilities Now Platform capabilities Flow Designer Flows Flow logic Make a decision flow logic

    Make a decision flow logic

    • Save as PDF Selected topic Topic & subtopics All topics in contents
    • Unsubscribe Log in to subscribe to topics and get notified when content changes.
    • Share this page

    Make a decision flow logic

    You can use the decision table branching logic in situations where multiple conditional paths are required, as an alternative to nested If, Else If, or Else flow logic. For example, if you want to determine what kind of car insurance you need, you can add inputs such as your age accident history, and car model to the decision table to determine a level of insurance coverage. This logic can save you time and present a more readable format than nested if conditions or switch case statements.

    The Make a decision flow logic requires that you create an external decision table for its branch paths. Each answer that is defined in the decision table results in a branch path within Flow Designer. Decision tables accept any number of inputs, include any number of decisions, and result in a finite set of decision paths. You can configure a decision table to determine a single path or multiple paths. For more information on decision tables, see Decision Tables.

    Inputs

    Input Description
    Decision Label Descriptive label for the decision that you want to make. For example, you can create the Recommended Insurance Policy label if you want to determine the level of insurance coverage that you need. This value overrides the default action label.
    Decision table Reference to a Decision Table [sys_decision] record. This record provides the decision input answers that are available to the flow.
    Execution approach Approach that you select to execute your decision.
    • First decision that matches: Runs only the branch for the first matching decision answer.
    • Run all decisions that match: Runs all branches with a matching decision answer.
    Include otherwise Option to add the otherwise branch. The flow only runs this branch when no other branch runs.
    Decision table inputs List of Decision Input [sys_decision_input] records that are associated with your decision table. Flow Designer displays a separate input for each record. For example, if you have decision inputs for Units Ordered and Location of Sale, an input displays for each record.

    Outputs

    Output Description
    Decision answer record Record that was created after the decision inputs were evaluated.

    Example: Use make a decision flow logic to determine insurance coverage

    In this example, the flow uses a decision from the Insurance Coverage decision table, which an administrator had configured to determine the insurance coverage that was based on three inputs. The flow displays all the inputs that were used by the decision table in Flow Designer. These inputs can be entered manually, or by dragging data pills into the inputs from the Data pane on the right side of the screen. Below this section, the branches for each answer are shown in the decision table.

    Example of Make a decision flow logic.

    Execution details

    Figure 1. Make a decision flow execution details
    Example execution details for the make a decision flow logic.
    The Flow execution details tab provides runtime information about the flow logic.
    1. The header shows the state, start time, and runtime for the flow logic.
    2. The action shows details about the decision table configuration and inputs.
    3. Each possible answer for the decision table is represented as a branch. The state field indicates whether the branch was evaluated and the evaluation result. This section also displays details about the actions that are taken within a branch. Branches that evaluate to true are highlighted in green.
    Related concepts
    • If flow logic
    • For Each flow logic
    • Do the following until flow logic
    • Do the following in parallel flow logic
    • Wait for a duration flow logic
    • Call a workflow flow logic
    • End flow logic
    • Dynamic flows

    Tags:

    Feedback
    On this page

    Previous topic

    Next topic

    • Contact Us
    • Careers
    • Terms of Use
    • Privacy Statement
    • Sitemap
    • © ServiceNow. All rights reserved.

    Release version
    Choose your release version

      Make a decision flow logic

      • Save as PDF Selected topic Topic & subtopics All topics in contents
      • Unsubscribe Log in to subscribe to topics and get notified when content changes.
      • Share this page

      Make a decision flow logic

      You can use the decision table branching logic in situations where multiple conditional paths are required, as an alternative to nested If, Else If, or Else flow logic. For example, if you want to determine what kind of car insurance you need, you can add inputs such as your age accident history, and car model to the decision table to determine a level of insurance coverage. This logic can save you time and present a more readable format than nested if conditions or switch case statements.

      The Make a decision flow logic requires that you create an external decision table for its branch paths. Each answer that is defined in the decision table results in a branch path within Flow Designer. Decision tables accept any number of inputs, include any number of decisions, and result in a finite set of decision paths. You can configure a decision table to determine a single path or multiple paths. For more information on decision tables, see Decision Tables.

      Inputs

      Input Description
      Decision Label Descriptive label for the decision that you want to make. For example, you can create the Recommended Insurance Policy label if you want to determine the level of insurance coverage that you need. This value overrides the default action label.
      Decision table Reference to a Decision Table [sys_decision] record. This record provides the decision input answers that are available to the flow.
      Execution approach Approach that you select to execute your decision.
      • First decision that matches: Runs only the branch for the first matching decision answer.
      • Run all decisions that match: Runs all branches with a matching decision answer.
      Include otherwise Option to add the otherwise branch. The flow only runs this branch when no other branch runs.
      Decision table inputs List of Decision Input [sys_decision_input] records that are associated with your decision table. Flow Designer displays a separate input for each record. For example, if you have decision inputs for Units Ordered and Location of Sale, an input displays for each record.

      Outputs

      Output Description
      Decision answer record Record that was created after the decision inputs were evaluated.

      Example: Use make a decision flow logic to determine insurance coverage

      In this example, the flow uses a decision from the Insurance Coverage decision table, which an administrator had configured to determine the insurance coverage that was based on three inputs. The flow displays all the inputs that were used by the decision table in Flow Designer. These inputs can be entered manually, or by dragging data pills into the inputs from the Data pane on the right side of the screen. Below this section, the branches for each answer are shown in the decision table.

      Example of Make a decision flow logic.

      Execution details

      Figure 1. Make a decision flow execution details
      Example execution details for the make a decision flow logic.
      The Flow execution details tab provides runtime information about the flow logic.
      1. The header shows the state, start time, and runtime for the flow logic.
      2. The action shows details about the decision table configuration and inputs.
      3. Each possible answer for the decision table is represented as a branch. The state field indicates whether the branch was evaluated and the evaluation result. This section also displays details about the actions that are taken within a branch. Branches that evaluate to true are highlighted in green.
      Related concepts
      • If flow logic
      • For Each flow logic
      • Do the following until flow logic
      • Do the following in parallel flow logic
      • Wait for a duration flow logic
      • Call a workflow flow logic
      • End flow logic
      • Dynamic flows

      Tags:

      Feedback

          Share this page

          Got it! Feel free to add a comment
          To share your product suggestions, visit the Idea Portal.
          Please let us know how to improve this content

          Check any that apply

          To share your product suggestions, visit the Idea Portal.
          Confirm

          We were unable to find "Coaching" in Jakarta. Would you like to search instead?

          No Yes
          • Contact Us
          • Careers
          • Terms of Use
          • Privacy Statement
          • Sitemap
          • © ServiceNow. All rights reserved.

          Subscribe Subscribed Unsubscribe Last updated: Tags: January February March April May June July August September October November December No Results Found Versions Search preferences successfully updated My release version successfully updated My release version successfully deleted An error has occurred. Please try again later. You have been unsubscribed from all topics. You are now subscribed to and will receive notifications if any changes are made to this page. You have been unsubscribed from this content Thank you for your feedback. Form temporarily unavailable. Please try again or contact  docfeedback@servicenow.com  to submit your comments. The topic you requested does not exist in the release. You were redirected to a related topic instead. The available release versions for this topic are listed There is no specific version for this documentation. Explore products Click to go to the page. Release notes and upgrades Click to open the dropdown menu. Delete Remove No selected version Reset This field is required You are already subscribed to this topic Attach screenshot The file you uploaded exceeds the allowed file size of 20MB. Please try again with a smaller file. Please complete the reCAPTCHA step to attach a screenshot
          Log in to personalize your search results and subscribe to topics
          No, thanks Login