Skip to main content
close Search
Close search

Adding decisions to processes

Pega Community logo

Note: The following content, referenced from Pega Community, is included here to help you better achieve the module learning objectives.

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.

Before you begin: Configure a process:
  1. Add a process to a stage in your case life cycle. For more information, see Adding a process to a stage.
  2. Define the steps for your process. For more information, see Adding a step to a process.
  1. In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.

  2. In the case working area, on the Workflow tab, click Life cycle.

  3. In the Case life cycle section, hover over a process in a stage, and then click the Configure process icon.

  4. Above the canvas, click the Add a flow shape icon, and then click Decision.

  5. In the Decision shape, click [Decision], and then replace the default label with a descriptive name.

    For example: In the Decision shape that represents a decision about an approval or rejection, enter Approved?.
  6. Drag the Decision shape onto the canvas, to a position where the decision occurs in the process.

  7. Connect the Decision shape to the process:

    1. Drag a connector from a shape that precedes the decision in the process to the Decision shape.

    2. Drag the end point of the connector from the Decision shape to the connection point of the shape that follows the decision on the canvas.

    Note: The Decision shape works correctly when the connector is green.
  8. Click the Decision shape.

  9. In the Decision shape property panel, define at least one conditional path:

    Choices Actions
    Create a custom condition
    1. In the When list, select Custom condition.

    2. Click the Configure conditions icon.

    3. In the Configure condition window, select a condition, a comparator, and a value to compare with the condition.

      For example: Case status is equal to New
    4. Optional:

      To define more conditions, click the Add row icon, and then repeat substep 9.c.

    5. Optional:

      To group the conditions, select comparators from the list.

      For example: To make only one condition compulsory, from the list, select OR.
    6. Optional:

      To reuse the condition in the future, click Actions Add to when conditions library .

    7. Click Submit.

    Use an existing condition
    1. In the When list, select Existing condition.

    2. In the list of conditions, select a condition.

  10. In the Go to list, select the shape to which the process advances when the case meets the conditions that you define.

  11. In the Otherwise go to list, select the alternative shape to which the process advances when the case does not meet the conditions.

  12. Click Save.

Note: At run time, when the case reaches a decision point, the system evaluates the conditions. If the case meets the conditions, the process moves to the step that you defined. If the case does not meet the conditions, the system moves the case to the alternative step.

  • Types of decision logic

    You can use different types of logic when you add the Decision shape to a flow. By understanding what makes each type unique, you can create flows that make decisions more effectively.

  • Changing the decision logic in a flow

    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.

  • Adding a parallel process to a stage

    Support your business process events that do not require a run-time order by adding a parallel process to a stage.

  • Conditionally starting a process in complex scenarios

    You can control whether a process runs to provide more than one outcome in a case. By default, sequential and parallel processes in a stage always run.

If you are having problems with your training, please review the Pega Academy FAQs.

Did you find this content helpful?

17% found this content useful

Want to help us improve this content?

Suggest an edit

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

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice