Script Task

The Script Task is used to execute a predefined script automatically. Usually, you can use script tasks to perform some simple operations on variables gathered from previous process elements.

Properties

The following table describes the properties of the task.

Property Description
Name Specify a name for your own reference.
Scripting Language Select the language of the script.
Script Enter the script that you want to execute. For example, you can use the script execution.setVariable("variableName", variableValue) to set a value for an existing or new process variable, or the script execution.getVariable("variableName") to get a variable value.

Note

As the script runs in the background, JavaScript methods such as alert() or console.log() are not supported.