Overview of Workflow Task Variables

Every workflow task can have variables associated to the workflow process or specific to a step. These variables usually have some internal information that can be used in custom workflows.

It is not possible to search for workflow tasks using variables. But, you can search for workflow tasks using the GET Task API and specify showTaskVariables or/and showTaskLocalVariables parameters. For more information, see Variables.

The showTaskVariables returns information about variables that belong to the complete workflow process (Task variables) and the showTaskLocalVariables returns variables associated with the current step of the Workflow task. For more information, see Get Task Details.

The Table 1: Variable Types displays the supported variable types.
Table 1. Table 1: Variable Types
Type Name Description
string The value of this variable is threaded as a java.lang.String.
integer The value of this variable is threaded as a java.lang.Integer.
short The value of this variable is threaded as a java.lang.Short.
long The value of this variable is threaded as a java.lang.Long.
double The value of this variable is threaded as a java.lang.Double.
boolean The value of this variable is threaded as a java.lang.Boolean.
date The value of this variable is treated as a java.util.Date.
binary This value is treated as an array of bytes. The value attribute is null, the valueUrl contains a URL pointing to the raw binary stream.
serializable Serialized representation of a Serializable Java-object. As with the binary type, the value attribute is null, the valueUrl contains a URL pointing to the raw binary stream. All serializable variables (which are not of any of the above types) will be exposed as a variable of this type.