Create an activity definition
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
- Create a Workflow Studio subflow or action that you want to use as the automation plan for your activity. For example, see Create an action as an activity automation plan.
- Make sure to set your current application to the application that you want your activity to run in. For more information, see Application picker.
- Role required: admin, playbook.admin, or pd_content_author
Procedure
-
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. -
Fill in the Activity Definition form fields.
Field Action Label Enter a unique name for your activity.
This name appears in the playbook in both the Workflow Studio Playbooks builder as well as during playbook runtime.
Table Select a table whose records the activity can access as inputs. When adding inputs to your activity in the Workflow Studio Playbooks builder, you can dot-walk to dynamic record data from this table. See Dot-walking to data in related tables.
Note:The table specified for a playbook's triggering input record overrides the activity definition table at design time. See TriggersDescription Optionally, enter some descriptive details about your activity. Accessible From Choose one of the following options: - All application scopes - You can add this activity to a playbook in any application scope.
- This application scope only - You can only add this activity to playbooks within the same application scope specified in the Application field.
Required Roles Add roles that are allowed to access activities that use this activity definition. Note:Users who can view the playbook but who do not have the required role to access activities with this activity definition will have a read-only view of these activities. -
Under the Automation Plan section next to the Flow or
Action field, click the lookup documents using list icon (
).
The Select the document screen appears. -
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. -
Next to the Document field, click the lookup documents
using list icon (
).
The Flows or Action Types screen appears. - From the list, select the subflow or action that you want to use to automate your activity.
- Select OK.
-
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.
-
Click Submit to save and create your activity definition
record.
The Activity Definitions list view appears.
-
Under the Label column in the list, select your activity
definition.
The Activity Definition form view appears.
-
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.
-
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.
-
For each variable, select where it is visible.
Visibility Description 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. - Select the Activity Experience tab.
-
Next to the UI Layout field, select the list icon (
).
The Activity UI Layouts list appears. - Select the UI Layout you want to use.
- Right-click in the header of the activity definition, and select Save.
-
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 (
) 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. -
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.
- Click Update to finish creating your activity definition.