About Script Tasks

Find some general hints about using the script editor.

With script tasks, you can create, read, and modify process context structures to transform data between different representations to $.info, $.context, $.roles, and $.usertasks.

Note that script tasks are subject to resource limits to protect against excessive usage. Due to the resource constraints, transformations may exceed the supported complexity of script tasks. In such cases, reduce the complexity of transformations, for example, by using more compact input data or incremental transformations. You should also consider alternative means for transformations, for example, using actions to call external services. Apply common ECMAScript code optimizations to the scripts, for example:

  • Reduce the size of the data processed in the scripts, for example, through early data cleanup.

  • Avoid regular expressions that are equivalent to simple string comparisons.