You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can define server-side scripts in workflow blocks. In addition to Server-Side API classes, the following three global objects can be used in scripts:

  • Current
  • Scratchpad
  • Activity

The Current object is a SimpleRecord instance, for which a workflow context has been created. The property names of the Current object match the names of the record columns (Column Name attribute). The full list of SimpleRecord class methods is described in this article.

The Scratchpad object is an associative array (JSON), into which you can place values to later use them within the context. The value of the object is stored in the Scratchpad field of the Workflow Context.

The Activity object is a SimpleRecord instance of the current block record. The Activity object properties match the names of record columns (Column Name attribute) in the Workflow Executing Activity [wf_executing_activity] table. For the Task [task] and Approval [sys_approval] records in the Wf Executing Activity field a reference to the linked Executing Activity record is specified.

  • No labels