Cancelling an Optional Process (Dismissing Supporting Processes)

One of the most frequent questions we see on the Pega Forums (such as in Configuring Cancel button to actually cancel assignment in Constellation Pega Platform v 26.1) revolves around what happens when a user launches an Optional Process (Supporting Process), changes their mind, and clicks the Cancel button.

Instead of the process disappearing, the user is returned to the case only to find an orphaned assignment sitting in their To-Do / Assignments list! Let’s break down what is happening under the hood, when this impacts your users, and how to properly configure an out-of-the-box way to dismiss a started Optional Process.


:bullseye: The Scenario: “I Changed My Mind!”

Imagine a Case Worker is working on a Loan Application or Customer Service Request .

  1. While in the middle of the primary workflow, the user goes to the Actions menu and triggers a multi-step Optional Process (for example, Update Collateral Details or a Search and Select lookup process) .
  2. Pega spawns this supporting flow in parallel and opens the first assignment screen .
  3. Halfway through the first screen, the Case Worker realizes they selected the wrong action or don’t have the required documents yet, so they click Cancel at the bottom of the form .

The Problem

In the Constellation Design System, the standard Cancel button on an Assignment is designed to discard unsaved UI changes on the current form and unlock/close the active view—it does not delete the assignment or terminate the underlying flow . Because an Optional Process instantiates a real flow on the case (pxFlow), clicking Cancel simply leaves that supporting process paused at its current assignment in the Case’s To-Do widget .


:light_bulb: What It Is: Optional Action vs. Optional Process

To understand why this happens—and how to design for it—it helps to distinguish between the two types of optional work in Pega

Feature Optional User Action (Local Action) Optional Process (Supporting Process)
Scope A single step/screen (Flow Action). A series of steps (Flow rule with one or more Assignments/Automations) .
Behavior on “Cancel” Closes the modal/view and returns to the case with no leftover assignment, because no new flow was spawned. Leaves the newly spawned Assignment open in the To-Do list, because starting the process created an active flow instance on the Case .
How to Abort Click the standard Cancel button. Requires an explicit Dismiss / Cancel Process action that removes the started flow from the Case.

:pushpin: Rule of Thumb: If your optional task only requires one screen, always configure it as an Optional User Action rather than a single-step Optional Process . You immediately avoid the lingering assignment problem!


:stopwatch: Alternatives: Can you solve with SLA?

Before trying the below, you may want to consider using an SLA to automatically abort the new flow, if it abandoned. This is a far simpler implementation and does not require the user to manually dismiss the newly spawned flow.


:hammer_and_wrench: How to Do It: Enabling Case Workers to Dismiss a Supporting Process

If you genuinely have a multi-step Optional Process and need to let Case Workers abandon and remove it after it has been started, Pega Platform provides an out-of-the-box mechanism to dismiss the supporting process.

(Note: This configuration was previously documented under Step 8 of Pegasystems Documentation , though it was omitted from the updated '26 documentation—the capability itself remains supported and works in Pega Infinity '26!)

Step-by-Step Configuration

  1. Open your Optional Process Flow in Infinity Studio:
    • In App Studio, navigate to Case Types, open your Case Type, and locate your supporting process under the Workflow tab (Optional actions pane).
  2. Open the Process / Assignment Properties:
    • Open the Process of the Flow rule and locate the Local Actions / Optional Actions section .
  3. Open process to look at the rule directly
  4. Open the Assignment configuration
    1. For a regular process I can double click this shape or right-click and View Properties
  5. Scroll down and expand the Local actions section
  6. Add the Out-of-the-Box Cancel/Remove Process Action:
    • In the Local Actions configuration, click +Add local action to add the out-of-the-box Flow Action that removes the started process
  7. Save your Flow Rule and Test at Runtime:
    • Click Save and check-in as needed .
    • Launch a Case in your Constellation portal and start the Optional Process from the Actions menu .
    • On the assignment, select the local Cancel process action from the assignment’s Actions menu (or local action selector) and submit.
    • Result: Pega cleanly terminates the supporting flow, removes the assignment from the To-Do list, and returns the user to the main Case view without resolving or cancelling the parent Case itself.

:warning: Common Pitfalls to Watch Out For

  • Dismiss is only available when you are inside the action itself, it is not a Case Wide action - as the context for what to cancel is taken from the Assignment/Step you have open.
    • Personally, I would prefer a case-wide action that allowed you to select the assignment and cancel it. I have done that in the past but it is extra build work!
  • Don’t try to override the OOTB Cancel button via custom UI hacks: As discussed in How can I hide the Cancel button in a flow action (assignment shape) in Constellation UI? and Customizing pyCaseActionAreaButtons in Pega Constellation, the standard Submit / Save for later / Cancel action area is a prescribed part of the Constellation Design System. You can relabel the buttons, but you cannot repurpose the standard Cancel button to execute flow-deletion logic without going down a heavy custom DX Component route (which is not recommended) .
  • Don’t confuse Cancelling a Process with Cancelling the Case: Using a Change Stage shape to move to a Resolution stage (e.g., Resolved-Withdrawn or Resolved-Cancelled) will terminate the entire Case . Always use the local process-dismissal action when you only want to abort the supporting sub-flow while keeping the primary Case active.

:link: Related References & Further Reading

3 Likes

Enjoyed this article?

See suggested articles from our Constellation 101 series and view all our Knowledge Shares from our User Experience Expert Circle.