Workflow Accelerator runs the code on the server, using Node.js. This means that you can use ECMAScript 2015 (ES6) features.
Using process variables
Next, we'll show how to work with data. Suppose that the process includes a form that has each type of field and looks like this:
You see all available fields after entering the variable name and . .
In this example (below), you have selected all variables. For each variable that you select, you get an input field to specify a test value. Here you see all fields with a test value.
Clicking Start new test again to see the JSON structure of the variable data for the different variable types.
The contract and salesRepresentative variables have complex types, File and User, so the table only shows an ID. The Updated value column shows the result of assigning new values to these variables in the script.
Update process variables
Is this page helpful?