Configure a Complex variable activity
Use the following procedure to configure a Complex variable activity.
-
Add an activity to the map.
By default, the Configuration tab is open in the properties panel of the activity.
- Change the default Name of the activity to something meaningful.
- On the Type list, select .
- On the Complex variable list, select a dynamic complex variable.
-
On the
Action list, select one of the following.
Add row
- When you select a Complex variable, all the columns configured in the complex variable are listed in the table as per the names that you have provided for the columns.
- For each column, provide either an inline value or select a
process or server variable.
-
Any column that is not mapped will use the default values at runtime.
-
A numeric value should be set to 0.
-
A boolean value should be set to false.
-
A string value should be empty.
-
A date value should be set to the current date and time.
-
When you execute this activity, at runtime a row is added to the selected variable at the end of the array with the values specified.
Delete row Delete rows using either of the following methods:
-
Index: Provide an index value to delete.
Provide a value for the Row index, that is, the rows you want to delete.
-
Custom search: Define the search criteria for deleting. You can add, delete, and modify the search criteria.
-
Click for Search criteria.
-
Provide the name and value using an inline value or process or server variable.
-
Click Add.
When you execute this activity, at runtime the row at the specified index is deleted or any row that matches the search criteria is deleted from the array. If the row doesn't exist an error is displayed.
-
Update cell values Update the cell values using either of the following methods:
-
Index: Provide an index value to update. You can add more than one column to update.
-
Provide a value for the Row index, that is, the row at which you want to update the value.
-
Click for Update columns.
-
Provide the name and value using an inline value or process or server variable.
-
Click Add.
You can add multiple columns to update.
-
-
Custom search: Define the search criteria. You can add multiple search criteria.
-
Click for Search criteria.
-
Provide the name and value using an inline value or process or server variable.
-
Click Add.
-
Click for Update columns.
-
Provide the name and value using an inline value or process or server variable.
-
Click Add. You can add multiple columns to update.
When you execute this activity, at runtime the columns in the row at the specified index are updated with the specified values, or the row that meets the search criteria is updated. If the row does not exist an error is displayed.
-
Get row(s) Get row(s) using either of the following methods:
-
Index: Provide an index value to get the rows you want. You can add multiple columns to return.
-
Provide a value for Row index, using an inline value, or process or server variable.
-
For Return data add the columns to be returned and map the columns to the targets using a process or server variable.
-
On the Row count, select the Long or Short type variable.
-
-
Custom search: Define the search criteria. You can add multiple search criteria.
-
Click for Search criteria.
-
Select a name (column) and provide a value using an inline value or process or server variable.
-
Click Add.
-
To return the row data, on the Popup return variables list, select a dynamic complex variable.
-
Add one or more columns and map them to return the result of the complex variable.
-
On the Row count, select the Long or Short type variable.
When you execute this activity, the data from the row at the specified index is returned with the correct variables, or any row that matches the search criteria is returned with the mapped complex variable. If the row does not exist, an error is displayed.
-
- Save the process map.
- Configure other properties for this activity. See Activity properties.