Scripts are used to execute custom logic as part of a process. Process variables can be passed to a script, and the results can be returned to the process instance as process variables.
Scripts are commonly used when process logic cannot be implemented using standard process elements or connectors alone. This enables processes to perform custom calculations, data transformations, and other automated actions.
Scripts are written in JavaScript. JavaScript created in Studio Modeler inherits the permissions of the currently logged-in user. This allows users to test scripts using resources that are available to them. For more information on the available process scripts, see Process Scripts.
Script execution uses:
- Monaco Editor for script authoring.
- GraalVM JavaScript Engine for script execution.
Scripts are added to process definitions through Script Tasks. A Script Task executes the associated JavaScript during process execution and can exchange data with process variables. For more information, see Creating Scripts, Creating Tasks and Script Task Properties.