Create Empty Array
Activity allows to create an empty single-dimensional array.
Arrays are used to store multiple elements as a single variable. An array is the data structure that stores a fixed number of elements of the same data type. The type of data stored in the array has to be specified beforehand. You cannot change the size or type of an existing array after it has been created. The elements of an array are indexed. An index is a number associated with each array element, starting with index 0 and ending with <array size minus 1>.
Dragging the activity to flowchart opens an input window requiring you to select your array’s data type, followed by activity window itself. You can specify the size of the array (Length parameter) and give a name to the Array there (create a variable, type: Array of [T], e.g. String[] or Int32[], it must match chosen Element Type).


Array elements can be accessed using an index - simply type array name followed by element's index in brackets (name(2) addreses to the third element of the array). You can use length property in conditional expression of the for loop. You can use for each loop to read values of an array elements without using index.
Parameter Name | Parameter Type | In/Out | Description |
---|---|---|---|
Alternative Scenario If Failed | Boolean | Input | checkbox; default is "on" |
Display Name | Literal | Input | you can change the name of activity for greater clarity of the scenario |
Element Type | Dropdown | Input | choose the array's type from a dropdown list |
Exclude from Transaction Check | Boolean | Input | checkbox; default is "off" |
Length | Int32 | Input | size of the array (number of elements) |
Array | Literal | Output | name of the array |
Result | Boolean | Output | returns the Boolean value: it will return True if no error is in activity, otherwise it will return False |
Result Code | Int32 | Output | Result Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities |
Last edited: 2023, 03 July.