Toggle menu

Workflow Activities

Workflow Script Task

Script task

A script task is an automatic activity. When a process execution arrives at the script task, the corresponding script is executed.

PropertyDescription
IDAn optional unique ID for this element. The modeller will assign a random ID if left blank
NameA name for this element
DescriptionAn optional description for this element
Script

The script

Press F11 to make the script editor full screen

AsynchronousWhen 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