Using Process Data in Scripts

Any process data added to a script can be used by the script both in the design-time interface and at runtime once the process containing the script has been deployed.

Process data are wrapped in the data object. For example:
var data.engineSize = data.car.engineCapacitycc;
var data.carPrice = data.car.listPrice + data.delivery + data.tax;

By default, all of a process’s data fields are available in a script. If specific data is associated with a task that has an interface, then it might restrict the fields that are available, depending on the activity and script type.