Use one of the following types of context variables to reference source or target process data in activities and resources in the Business Process Editor.
String - A simple context variable defined as a string.
Integer - A simple context variable defined as an integer.
Float - A simple context variable defined as a decimal.
Complex - A complex context variable defined as a schema or any of its elements.
You can also add context variables from the Business Process Context Browser. See Browsing Context Variables.
To add a context variable:
In the Business Process
Editor, right-click and select Define Context from the shortcut menu.
The Context Variable List dialog box opens.
Click Add.
In the Add Context Variable dialog box, enter a descriptive name for the variable in the Name field. This field is required.
Select a Data Type from drop-down list. Choose among the following types:
Select String, Integer, or Float and enter an optional default value for the variable.
Select Complex, browse for the .xsd file to define the content model of the variable, and then specify the root element using the Root Tag drop-down list. The content model defines the structure and data types of all of the elements that comprise a complex type context variable.
Note: The .xsd describing the content model of context variable must be a part of your current project and must contain an XML schema; however, the XML schema contained in the variable is not validated when it is added to the list. See Importing XSL Schema Definitions.
Click OK to add the context variable to the list.
Click OK to return to the Business Process Editor.