Close popover

Table of Contents

Changing the decision logic in a flow

Version:

You can change the way that you implement a decision in a process. By using a rule instead of a series of when conditions to define your decision logic, you can create cases that support complex decisions and are easier to maintain.

  1. In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.

  2. On the Workflow tab, click Life cycle.

  3. Click a process that contains a Decision step, and then click Open process.

  4. On the Diagram tab of the Flow form, double-click the Decision shape to open the property panel.

  5. In the Type list, select a type of decision logic.

    For more information about the supported types, see Types of decision logic.

  6. Associate your decision logic with the Decision shape.

    • For decision logic that you define in a decision table, decision tree, map value, predictive model, or scorecard:

      1. In the Rule field, press the Down Arrow key and select the rule that defines your decision logic.

      2. Provide input values, based on the type of rule that you select.

        • Input - Passes text or a property reference to a decision tree.

        • Row input - Passes text or a property reference to a row in a map value rule.

        • Column input - Passes text or a property reference to a column in a two-dimensional map value rule.

      3. In the Result in field, enter the name of a property that stores the result of the decision.

    • For decision logic that you define in a Boolean expression:

      1. In the Expression field, enter a Boolean expression that defines your decision logic.

      2. Optional:

        To access helpful tips and built-in functions for your expression, click the Build an expression icon.

    • For decision in a fork. Percentage — Follows the connector for a specific percentage of flow runs.

      For example, you can ensure that 20 percent of mortgage applications take a different path in the flow for auditing purposes.

      This option is available only when you connect a Decision shape that is set to type Fork .

  7. Click Submit to close the property panel.

  8. Click Save.

  • Adding decisions to processes

    Make your business processes flexible and responsive by providing conditional paths that a case can follow to reach a resolution. By adding a decision point to your case, you support more than one outcome for your business process, and adjust the case to changing business needs and circumstances.

  • About Decision tables

    Use a decision table to derive a value that has one of a few possible outcomes, where each outcome can be detected by a test condition. A decision table lists two or more rows, each containing test conditions, optional actions, and a result.

  • About Decision Trees

    Use a decision tree to record if .. then logic that calculates a value from a set of test conditions organized as a tree structure on the Decision tab, with the 'base' of the tree at the left.

  • Scorecard rules

    A scorecard creates segmentation based on one or more conditions and a combining method. The output of a scorecard is a score and a segment defined by the results.

  • About Predictive Model rules

    Predictive Model rule instances use models that are created in the Prediction Studio or third-party models in Predictive Model Markup Language (PMML) format to predict customer behavior. You can use predictive models in strategies through the Predictive Model components and in flows through the Decision shape.

  • About Map Values

    Use a map value to create a table of number, text, or date ranges that converts one or two input values, such as latitude and longitude numbers, into a calculated result value, such as a city name. Map value rules greatly simplify decisions based on ranges of one or two inputs. Use a map value to record decisions based on one or two ranges of an input value. A map value uses a one- or two-dimensional table to derive a result.

  • Building expressions with the Expression Builder

    Author expressions using the Expression Builder by completing the following steps:

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.