How do you configure a stage to skip based on a condition in Pega?

How do you configure a stage to skip based on a condition in Pega?

@Satya K Click on a case type to view the case life cycle design. Click on the stage that needs to be skipped and navigate to Validation tab. There is an option to provide an expression or call a when rule. If it evaluates to true, the stage will be skipped at runtime.

The first stage is usually a create stage which automatically moves the case to subsequent stages. The last stage cannot be skipped.

Hello @Satya K

To skip a stage based on a condition, you configure the Skip Stage settings inside the Stage rule.
Use a When rule or an Expression to define the condition dynamically at runtime.
Choose a When rule when you need reusable and centrally managed logic, or use a direct expression for simpler, case-specific conditions.

Additionally, you can use a Decision shape in the flow before entering the stage to evaluate conditions and route the case accordingly, effectively preventing entry into unnecessary stages altogether.