Skip to main content
An activity consists of a set of consecutive steps, each of which carries out a specific method or instruction. To create a new activity, do the following:
  1. In Dev Studio, click Records → Technical → Activity Create.
  2. Fill in the Label and Identifier fields and make sure that the activity is being created in the context of the case (for more details, see Creating a case with a workflow). Next, click Create and open.
    Screenshot of the Create Activity window in Pega Dev Studio with the Label and Identifier set to SendForProcessing and the Apply to context set to the case.
  3. On the Steps tab that, add the required activity steps.
  4. On the Parameters tab, specify the required variables. On the Pages & Classes tab, specify a page to be used for the activity steps.

Setting up activity steps

To configure your activity, you need to create loops and substeps. To create a loop, click Loop for a step and select a repetition type (in our example, For each element in value list) and a list of values. Click Submit.
Screenshot of an activity step in Pega Dev Studio with the loop configuration popup set to repeat For each element in value list over the Case.pyAttachments value list property.
To create a substep, create a new step and drag it into the step for which the substep is being created.
When setting up the activity, you will also need to set up the following:
  • The When condition – This condition is checked before a step is carried out. Depending on the result, the step is either carried out or skipped.
  • The Jump condition – This condition is checked after a step. Depending on the result, the activity can either advance to the next step or finish.
  • Label specifies a step to which you can go from another step.