Scoped Workflow - getVariable(String name)

Returns the specified variable's value.

Table 1. Parameters
Name Type Description
name String The variable name
Table 2. Returns
Type Description
Object The variable's value

var value = workflow.getVariable("task");