Actions¶
Use actions to represent the outcomes of a task. An action is what advances the workflow to the next route or terminates it when no valid route is found.

Actions are selected either by users or automatically, depending on the task type and its rules. Selecting an action advances the workflow to the next step.
Action Properties¶
The following properties are configurable for each action:
Name: The internal identifier for the action. Scripts refer to actions by this name, for example through $WorkItem.SelectedAction.
Caption: The text displayed to the user. Supports localization.
Is Hidden?: Hides the action from end-users. Useful for temporarily disabling actions or selecting deadline actions for task escalation.
Follow Action: If checked, the system automatically opens the next task for the same user, skipping the user work list. This only applies if the next task is assigned to the same user.
Validation Group: Specifies one or more validation rule groups (separated by semicolons). The action is disabled if any rule within these groups fails.
Comment Policy: Controls the comment input for the action.
- Optional: Allows the user to optionally add a comment.
- Required: Requires a comment from the user.
- Hidden: Hides the comment field.
Allow Bulk Selection: Enables bulk actions from the task list and via email. When enabled, selected tasks in the work list display the action in the top menu, allowing simultaneous action on multiple tasks.
Email notifications include action buttons; clicking these generates an email with the flow ID, which when processed (by clicking "Send"), applies the action via email.
Order: A numerical value controlling the action's order among other actions. Higher values place the action last. Auto-select rules are also evaluated in this order.
Appearance Properties¶
Right-click an action to access its appearance properties:
Icon: Select a custom icon.
Color: Set the action caption's text color.
Background Color: Set the action caption's background color.
Confirmation Message: Customize the confirmation message displayed to the user before action execution. Defaults to "Are you sure you want to select the action <action caption>?".
Scripting Around an Action¶
An action can be selected automatically on the server or by a user in the browser. Choose the surface by who makes the decision and what must happen at that moment:
| Surface | Runs on | Use it to |
|---|---|---|
| Prework script | Server, before assignment | Select an action from a script by setting $WorkItem.SelectedAction. |
| Auto-select rule | Server, before assignment | Select an action when a condition on the form data is met, without code steps. |
| Validation rules of the validation group | Browser, while the form is open | Keep the action disabled until the form data is complete and valid. |
| User select script | Browser, after the user selects the action | Ask for extra input, call a service, sign files, or update form data that must be submitted with the action. |
| Postwork script | Server, after the action is accepted | Apply the business effects of the selected action and enforce mandatory checks. |
| Route validation rules | Server, after postwork | Choose which routes of the selected action are followed. |
When a user selects an action, the confirmation message and the comment input are shown first. The user select script runs next, then the form data, including the script's changes, is submitted and the server-side scripts run.
The user select script runs only when a user selects the action from the task form. Bulk selection, email replies, deadlines, auto-select rules, prework scripts and API calls select the action without it. Enforce mandatory rules on the server.
For the position of these surfaces among all scripts of a workflow instance, see Script Execution Order.