Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Changing the decision logic in a flow

Updated on March 29, 2022

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.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us