Workflow Script Task

A script task is an automatic activity. When a process execution arrives at the script task, the corresponding script is executed.
| Property | Description |
|---|---|
| ID | An optional unique ID for this element. The modeller will assign a random ID if left blank |
| Name | A name for this element |
| Description | An optional description for this element |
| Script | The script Press F11 to make the script editor full screen |
| Asynchronous | When execution reaches a task that has been marked as asynchronous the engine will commit the current transaction and schedule a background job to continue the process from the asynchronous task |
Variables in Scripts
All process variables that are accessible through the execution that arrives at the script task can be used within the script by directly using their name, for example:
var variable1 = _businessKey;
By default, no variables are stored automatically. It is possible to store any variable defined in the script by using an execution.setVariable() call.
execution.setVariable("variableName", variableValue)
See Process Variables for more information about variables and script tasks.
Last modified on 2 September 2025
