Process variables and data types
A process consists of input and output variables (or parameters) that you can configure depending on the purpose of your process. You can configure the process variables of different data types such as Boolean, Date, Date/Time, Decimal, Floating, Integer, Object, Record, Selection, Text, Time, and Document.
Types of process variables
The following table describes the process variables in detail:
Parameter values that you need to provide when starting a process instance. An input variable can be optional or required.
|Output variable||Parameter that a process instance returns on process completion.|
Variable data types
The following table describes some data types in detail:
Use the Record datatype 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 datatype 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 document with an Object type variable, you can expand the Object variable as per the Document schema and use the individual attributes (such as 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 objects or an array of objects.
Accessing attributes in a simple object:
Accessing attributes in an array of objects:
It is a composite data type that allows you to create a list of primitive data types. Currently, you can create a list of only attachment and text data type.
You can also use the List type of variable in a multi-instance loop to iterate over its elements. To populate a list, you can also use the Create List element.