Skip to main content
Next, you need to create a new activity and add it to your workflow.
  1. In Dev Studio, open the case type that you created earlier.
  2. On the Workflow tab, click Add life cycle.
  3. Create a first stage with a Collect Information step. This step will open the dialog box where files can be added.
    Screenshot of the Workflow tab in Pega Dev Studio showing the case life cycle with a single Collect Information stage that contains a Collect Information step.
  4. Create a Process stage, add any step to this stage (e.g. Change stage), and click Save.
    Screenshot of the Workflow tab in Pega Dev Studio showing the case life cycle with a Collect Information stage and a Process stage that contains a Change stage step.
  5. Next, click Records → Process → Flow to open the list of flows and double-click the Process_Flow flow for the case type that you created earlier.
    Screenshot of the Flow instances list in Pega Dev Studio showing the pyStartCase, Process_Flow, and CollectInformation_Flow flows for the case type.
  6. Replace the Change stage step with a Utility step.
    Screenshot of the Process_Flow diagram in Pega Dev Studio showing the shape menu with Utility selected and the resulting flow with a Utility shape between the Start and End nodes.
  7. Double-click the Utility item to open its properties. Change the name of the item to Capture Data. In the Rule field, type CaptureData to create a new activity with this name and click the icon next to this field.
    Screenshot of the Utility step properties in Pega Dev Studio showing the name set to Capture Data, the rule type Activity selected, and CaptureData entered in the Rule field.
  8. In the window that opens, click Create and open.
  9. On the Pages & Classes tab, create the following three objects:
Screenshot of the Pages & Classes tab of the CaptureData activity in Pega Dev Studio showing the Case, Attachment, and AttachmentInfo pages mapped to the Work- and Data-WorkAttach-File classes.
  1. On the Parameters tab, create the following three parameters:
Screenshot of the Parameters tab of the CaptureData activity in Pega Dev Studio showing the CaseId, jsonData, and executionMode String parameters.
  1. Create the following three local variables:
Screenshot of the local variables section of the CaptureData activity in Pega Dev Studio showing the LinkedRefTo, Id, and Index variables with their String and Integer data types.