Specify the action or subflow you want an activity to run. Configure the inputs you want playbook designers to set when adding the activity to a playbook. Select the experience you want end users to have when the activity runs.

Before you begin

Procedure

  1. To start creating a new activity definition, do one of the following:
    • Navigate to Process Automation > Process Automation Administration > Activity Definitions. Then in the context header, click New.
    • Follow the steps to Create a playbook. Then in the Playbooks activity design space, click Add an activity > Create a new activity.
    The Activity Definition form view appears.
  2. Fill in the Activity Definition form fields.
  3. Under the Automation Plan section next to the Flow or Action field, click the lookup documents using list icon (Lookup documents using list icon).
    The Select the document screen appears.
  4. In the Table Name list, select one of the following options:
    • To use a Workflow Studio subflow to automate your activity, select Flow.
    • To use a Workflow Studio action to automate your activity, select Action Type.
    Note: You can only use published actions or subflows for an activity definition's automation plan.
  5. Next to the Document field, click the lookup documents using list icon (Lookup documents using list icon).
    The Flows or Action Types screen appears.
  6. From the list, select the subflow or action that you want to use to automate your activity.
  7. Select OK.
  8. From the list, select an UI Layout for the properties and components that you want your activity to use when it renders in a user-facing view of your playbook.
    For more information, see UI Layouts.
  9. Click Submit to save and create your activity definition record.
    The Activity Definitions list view appears.
  10. Under the Label column in the list, select your activity definition.
    The Activity Definition form view appears.
  11. Select the Automation Plan section.
    The system displays the available variables for the action or subflow. The Workflow Studio Playbooks builder displays a variable for each action or subflow input.
  12. For each variable, configure the default value you want each variable to have.
    Leave a variable blank when you want a playbook designer to configure the value when adding the activity to a playbook.
  13. For each variable, select where it is visible.
    VisibilityDescription
    Include in standard modal Only displays the variable as an input from the Advanced properties modal.
    Include in standard modal and configuration panel Displays the variable as an input in the properties panel and the Advanced properties modal.
    Admin visibility only Only displays the variable as an input from the Advanced properties modal to users that have the admin or playbook.admin roles.
    Playbook designers can only set values for variables that they have access to.
  14. Select the Activity Experience tab.
  15. Next to the UI Layout field, select the list icon (Lookup documents using list icon).
    The Activity UI Layouts list appears.
  16. Select the UI Layout you want to use.
  17. Right-click in the header of the activity definition, and select Save.
  18. Under the Associated Record section, select values for the Associated table and Associated record fields.
    These values are typically Record and Table Name outputs for the Workflow Studio subflow or action specified in your activity's automation plan. For example, you can click the data pill picker icon (Data pill picker icon) next to the Associated record field and dot-walk to the Table Name output by selecting VL > Add Comment > Outputs > task > Approval.
    The system associates a record with your activity so that, when the activity runs, it knows which record's data to output.
    Use the data pill picker to add an associated table and record to your activity definition.
  19. If you want to set up the default activity data that renders in your playbook during runtime, enter the values for that data in the other sections under Activity Experience.
    The sections and fields that appear under Activity Experience vary depending on the UI Layout that you select. For more information, see UI Layouts.
  20. Click Update to finish creating your activity definition.

Result

You can now select your custom activity from the activity picker in the Workflow Studio Playbooks design environment. Select the appropriate application scope for your activity to view it in the picker.