Skip to main content


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

Creating contextual cases

Updated on March 29, 2022

To provide additional processing in your business processes, create a contextual case that starts when your current case is in progress. Creating contextual cases helps you deliver more granular and flexible applications. Instead of defining one long, complex case type, you can trigger a contextual case at an appropriate point in your main case type.

For example, in an application to review insurance claims after car accidents, you can start a contextual case to collect and review materials so that a customer service representative (CSR) can estimate the damage before returning to the main case.
Creating contextual cases in Dev Studio is suitable for advanced developers. To take advantage of low-code solutions in App Studio, see Creating a child case type.
  1. Add the Create case shape to the life cycle of your case:
    1. In the navigation pane of Dev Studio, click Case types, and then click the case type that you want to open.
    2. In the process in which you want to add the Create case shape, click Step MoreAutomationsCreate case.
    3. Click Select.
    4. In the Create case field, enter the name of the child case type, for example Damage estimates.
  2. In the Step properties pane, define the case type that you want to create:
    • To start an independent case type, select Create case.
    • To start a child case of the current case, select Create child case(s).
    If you create a child case type, you can only complete your main case type after the child case type reaches resolution.
  3. Select a case type to start:
    ChoicesActions
    Create a new case type
    1. In the Create the following case list, select Create new Case type.
    2. In the Case type name field, enter the name of your case type.
    3. Click Create.
    Use an existing case typeIn the Create the following case list, select the case type that you want to use.
    Use an existing case type by selecting a class
    1. In the Create the following case list, select Other.
    2. In the Class field, press the Down arrow key, and then select the class that stores the case type that you want to use.
      When you select a class, you do not need to provide a run-time case type name.
  4. Optional: If you create a child case type, to create more than one case type, select the Create multiple cases using a list check box, and then, in the List field field, press the Down arrow key, and then select a field group that determines the number of cases to create.
  5. Optional: To propagate data from your current case to the new case, in the Data transform field, press the Down arrow key, and then select the name of a data transform.
  6. Optional: If you create a new case type, to obtain a reference to the new case that you can use in the current case, in the Property to store ID of case field, press the Down arrow key, and then select the name of a single-value property.
  7. Optional: To provide more information for auditing reasons, in the Audit note field, enter the audit note.
  8. Click Save.

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