Use user option fields in Condition Editor

You can configure the User Option fields as part of a condition by specifying the names and values of the user option fields in Condition Editor.

However, using the user option fields might be time-consuming because the system needs to prepare variables for the user option fields at run time. For example, you configure to use the User Option as part of a task condition in Task Planner as follows:

At run time, the expression is evaluated to something as follows:

$L.UO.EmployeeType="Regular"

The variable $L.UO.EmployeeType is prepared by the system.

If you use the condition in your own scenario, make sure that you invoke the JavaScript method below at run time before evaluating the condition expression, which automatically prepares the user option variable for you:

lib.Workflow.initVarForCondition(conditionXml);

Note: The instance data of a user option is stored as a string value in the file userOption, and thus at run time, when the user option value is evaluated, it is also treated as a string value.