Adding an Action Script to a Task

You can add an action script to a task.

Procedure

  1. Click the task to which you want to add a script.
  2. In the Properties view for the task, click the Scripts tab.
  3. Select from Process Manager Scripts and Work Manager Scripts to display the different sets of scripts available. If either of those sets of scripts is not available for the task you have selected, the selection will be grayed out (so in the example below, Work Manager Scripts is grayed out).
  4. Click the tab for the type of script that you want to add. See Supported Script Types for a list of supported types.

    If a script is already defined under a tab, then this is shown by the script icon before the tab name. So in the example above, a script is defined under Initiate Script. If no script is defined, the tab name will be preceded by an empty script icon.

  5. Depending on the destination environment and capability selected, there are several script types in the Script Defined As list. Select one of the available script types and enter your script in the area provided. You can press Ctrl + Space for Content Assist.
  6. Once you have created the desired scripts, save the Package that contains the process.

Result

Content assist is available for action scripts in the same way as for script tasks. See Editing Scripts for details. However action scripts can also reference information about individual work items.