Script node

Use the script node to add logic to the workflow through the use of JavaScript code.

The Script node makes clear to anyone who views the workflow that scripting is present in the workflow.

JavaScript code is used within workflows to dynamically define and retrieve parameter and attribute values. JavaScript code is also used to store and forward these values as variables for use by logic or code within a single workflow activity.

The JavaScript code can be extended by defining custom JavaScript objects through a Java™ extension.

When using the Script node, carefully consider the overhead associated with running additional activities in a workflow versus using post-activity execution scripts on existing activities. Also consider combining multiple sequential script activities into a single script node to avoid additional workflow transaction overhead.

The Activity ID is the only required property for the Script node.

Parent topic: Workflow elements