Once a custom activity type has been deployed, an Active Roles administrator can add an activity of that type to a workflow. This is accomplished by dragging the activity type onto the workflow process diagram in the Workflow Designer.
- In the Active Roles console tree, expand Configuration | Policies | Workflow, and select the workflow to which you want to add an activity.
This opens the Workflow Designer window in the details pane, representing the workflow definition as a process diagram.
- In the details pane, drag the activity type from the left panel onto the process diagram.
The panel on the left of the workflow process diagram lists all the activity types defined in your Active Roles environment. The built-in activity types are listed in the Basic area, along with the custom activity types whose Policy Type objects are located directly in the Policy Types container. The other custom activity types are listed below the names of the containers that hold the corresponding Policy Type objects. The list includes only those containers that are located directly in the Policy Types container. The names of the intermediate containers are not shown.
- Right-click the name of the activity you have added on the process diagram, and then click Properties.
- On the Properties page, set parameter values for the activity: Click the name of a parameter in the list, and then click Edit.
Parameters control the behavior of the activity. When Active Roles executes the activity, it passes the parameter values to the script function. The actions performed by the script function, and the results of those actions, depend upon the parameter values.
Clicking Edit displays a page where you can add, remove, or select a value or values for the selected parameter. For each parameter, the script being used by the activity defines the name of the parameter and other characteristics, such as a description, a list of possible values, the default value, and whether a value is required. If a list of possible values is defined, then you can only select values from that list.