Process variables and data types
Types of process variables
The following table describes the process variables in detail:
Parameter | Description |
---|---|
Input variable | Parameter values that you need to provide when starting a process instance.
|
Output variable | Parameter that a process instance returns on process completion. |
Variable data types
The following table describes some data types in detail:
Data type | Description |
---|---|
Record | Use the Record data type to hold a record instance. For the Record data type, a parameter is passed by reference. When a parameter is passed by reference, the caller and the receiver use the same variable for the parameter. If the receiver modifies the parameter variable, the effect is visible to the caller variable.
|
Object | Use the Object data type to hold an object. For the object data type, a parameter is passed by value. When a parameter is passed by value, the caller and the receiver have two independent variables with the same value. If the receiver modifies the parameter variable, the effect is not visible to the caller. |
(Optional) Object associated with Document | Use a Document to hold a JSON schema for an object. When you associate a document with an Object type variable, you can expand the Object variable according to the Document schema and use the individual attributes, such as a simple object, nested object, or array of objects, in a process expression. For more information, see Defining-a-document-schema. The following images demonstrate how to access individual attributes within a simple object or an array of objects. Accessing attributes in a simple object: Accessing attributes in an array of objects: Important:
|
List | Use this composite data type to create a list of primitive data types. Currently, you can create a list of only attachment and text data types. You can also use the List type of variable in a multi-instance loop to iterate its elements. To populate a list, you can also use the Create List element. |