You are here: Case management > Process modeling > Flows > Responding to business exceptions in a flow

Responding to business exceptions in a flow

You can use a ticket in a flow to respond to business exceptions, errors, or events that you define. By moving a case to a specific point in a flow, you can ensure that additional processing occurs so that the case is not left in an incomplete state.

For example, you can activate a ticket to perform cancellation tasks and send correspondence to stakeholders when a user withdraws a case.

  1. Click Designer Studio> Case Management > Work Management > Tickets to review the tickets that are available in your application and the rules that reference them.

  2. Create a new ticket if there are no existing tickets that meet your use case.

  3. In the Explorer panel, click Cases, and then click the case type that you want to open.

  4. Set the ticket in the flow that defines your exception processing.

    1. On the Life cycle tab, click a process in a stage and then click Open process.

    2. On the Diagram tab of the Flow form, double-click the shape that is the entry point for your exception processing.

      If you do not have exception processing defined, you can add shapes to the flow or create a new flow.

    3. In the Advanced section, click Tickets.

    4. Click + Add ticket.

    5. In the Ticket name field, press the Down Arrow key and select the ticket that your application or a user activates at run time.

    6. Optional: To change the label of the ticket in the flow diagram, enter a name in the Display name field.

    7. Click Submit.

    8. Click Save.

  5. Activate the ticket in a flow that detects your business exception.

  6. Optional: To change the limits that prevent infinite loops in your flows, override the standard Pega-ProCom.MaxFlowEnteredCount and Pega-ProCom.MaxFlowLoopCount dynamic system settings in your application.

You can test your changes by creating and processing a case that meets the conditions that cause your business exception.

Previous