Workflow - getReturnValue(String workflowID, Number amount, Boolean result)

Gets the appropriate workflow return value for the input workflow ID. This is either the workflow checked out by the current user or the published workflow with the most recent date.

This is either the workflow checked out by the current user or the published workflow with the most recent date. This method is available starting with the Fuji release.

Table 1. Parameters
Name Type Description
workflowID String The sys_id of the workflow (table wf_workflow)
amount Number amount
result Boolean True, if true
Table 2. Returns
Type Description
??? The return value of the workflow as specified by the Return Value activity. Workflows without a Return Value activity return a null value.
var wkfw = new Workflow();
      wkfw.getReturnValue('context');
Output:
*** Script: b99a866a4a3623120074c033e005418f