Script (workflow activity)

Script (workflow activity)

Compose Enterprise is going through a design update. The illustrations on this page might be of the old design, but the information is up to date. Thank you for your patience during this update!

Norsk

The Script activity is located under Data Delivery in the Activities panel in the Workflow Builder. Drag and drop the activity to the canvas and select it to reveal the Properties - Script panel on the right. The script activity can be used to create new workflow values or transform existing workflow values with Groovy code. By declaring static values and workflow values as input variables, the values can be transformed in the script window and returned to subsequent activities as output variables. To see some user cases, take a look at the Script activity - using scripts in the workflow user guide.

 

Properties - Script

Properties - Script

Name

An activity name which is only visible in the workflow builder and is for the convenience of the workflow designer.

Script

Entered script will define the output variables. Output variables are defined in the Output variables menu, and the script can process workflow values accessed through input variables in the input variables menu. See the section on variable creation menus in the Variable menus documentation.

Open

Opens a no-code code builder similar to the Condition Builder in the Form Builder to create Display/Enable conditions. Based on the declared input variables, some code can be generated with this no-code interface.

Block progress if execution fails

With this setting checked, the workflow will display an error page and block the rest of the session if the execution of the script fails.

Input variables

Opens a variable creation menu (see the Variable menus documentation).

Output variables

Opens a reduced variable creation menu (see the Variable menus documentation).