WFActivityHandler - runScript(String script)

Enables activities to run a script contained in an activity variable of type script. Example activities that use this method include If, Wait for condition, and Approval - User.

Example activities that use this method include If, Wait for condition, and Approval - User.

Table 1. Parameters
Name Type Description
script String String containing valid Javascript.
Table 2. Returns
TypeDescription
variableIf the script set the workflow variable answer then this value is returned. If not, then the result of the script execution is returned.