Skip to main content


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

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Quick start: Creating an optional action or process

Updated on June 10, 2015

Each case type in a Pega 7 application contains stages that model the life cycle of the case. Within each stage, steps represent processing actions that must be taken to complete the stage and ultimately resolve the case (see Configure Stages for Your Application).

Steps are normally performed in a prescribed order, based on configuration choices. Pega 7 also allows you to add optional functionality to your case by using either:

  • An optional action – performs a single action (for example, sending an email message), and can become a new option in the Other actions menu.
  • An optional process – calls an entire Flow Rule (for example, starting an investigation on an insurance claim), and can be found in the Other Work option of the Other actions menu.

Requirements

To perform the example used in this article, you should first create a correspondence. To do this, follow the steps in Quick start: Creating a correspondence

Suggested approach

This article details how to add optional actions to a case. By following the example, you:

Create a process flow

Create an optional process that sends email to the creator of the work object.

  1. Create a process flow record by clicking Actions > Create other record > Process > Flow.
  2. Give the flow record a name (for this example, use Send Status Update).
  3. Verify that the context matches the context of your case, and then click Create and open.
  4. Remove the default assignment shape.
  5. Add a Send Email smart shape and set properties to:
  • Parties – Owner
  • Subject – Request status
  • Message – Correspondence
  • Correspondence template – Enter the name of a correspondence template.
    • If you performed the steps listed in the Requirements section, your template name is CaseStatusMessage.
    • If you have not created a correspondence, click the Open icon and create the correspondence template.
  1. Click OK to close the Send Email properties panel and save updates to the flow.

You now have a process flow (SendStatusUpdate) that can be added to your case type.

Flow for optional action

Add a case-wide supporting process

Add the new flow action to the Other actions menu.

  1. Open the Case Designer for the case type.
  2. Click Edit to add a Case-wide supporting process.
  3. In the Case-wide supporting processes dialog box, select the flow that you created (SendStatusUpdate), and then click OK to close the dialog box.
  4. Save updates to the case type.

Create a case instance and verify that there is an Other actions > Add Work > Send Status Update option.

Add a stage-wide supporting action

You can also add an action to a stage by using the stage configuration dialog box. In this example, an action to change stage is added to a Determine Approval stage.

  1. Select Configure stage behaviors for the stage (for example, the Determine Approval stage).
  2. Click the Add a row icon in Optional Actions.
  3. Add the standard flow action pyChangeStage, and then click OK.
  4. Save updates to the case type.

Create a case instance and verify that there is a Change stage option in the Other actions menu.

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