On the Data Mapping tab of the orchestration
workflow Property Editor, you can create an array of working data to
use in orchestrations. To do this, you first create an array
container data element, then the array, and then the array elements.
Procedure Summary
- Select an orchestration workflow to display it in
the orchestration workflow editor.
- Click the Data Mapping tab of the
orchestration workflow Property Editor.
- Create the array container data element by right-clicking the
Working Data step input and then selecting
Add New DataElement.
- Rename the new array container data element, if you want.
- Right-click the array container data element, point to
Type[String], and then select
Private Complex.
- Create the array by right-clicking the array container data
element again and then selecting Add Child
DataElement.
-
Right-click the array, and then select Properties
Mode, if it is not already selected.
- In the properties area under Misc, select
the IsUnbounded row.
- Click the down arrow next to False, and
then select True.
- Close the properties area by right-clicking the array and then
selecting Mapping Mode.
- Rename the array and change its data type, if you want.
- Create an array data element by right-clicking the array and
then selecting Add Array Element. (The new
array data element inherits the name and data type of the array.
You cannot change this.)
- Repeat the previous step to add more array data elements.
In the following exercise, you will create an array container data
element (ArrayContainer) that contains one array (Array) with three
array elements (Array[1], Array[2], and Array[3]).
To create an array of working data elements:
-
In App Explorer, select
DataMappingOrchWF under the
Orchestration Workflows heading.
-
In the orchestration workflow Property Editor, click the
Data Mapping tab.
The WorkingData step input should be
visible under the name of the orchestration workflow
(DataMappingOrchWF) in the
Working data column. (If it is not, click
a blank area in the orchestration workflow editor.)
-
Right-click the WorkingData step input,
and then select Add New DataElement.
A new data element (DataElement), which
is the array container, is added under the
WorkingData step input.
-
While DataElement is still selected,
type ArrayContainer, and then press the Tab
key.
-
Right-click ArrayContainer, point to
Type[String], and then select
Private Complex.
(Type[String] indicates that the original
data type of ArrayContainer was
String.)
The icon changes to .
-
Right-click ArrayContainer, and then
select Add Child DataElement.
A new DataElement is added under
ArrayContainer.
-
While DataElement is still selected,
type Array, and then press the Tab key.
-
Right-click Array, and then select
Properties Mode.
The properties area opens on the right side of the
orchestration workflow Property Editor.
-
In the properties area under Misc,
select the IsUnbounded row.
-
Click the down arrow next to False, and
then select True.
A left and right square bracket are added to the array name
(Array[]) to indicate that the data
element is an array.
-
To close the properties area, right-click
Array[], and then select Mapping
Mode.
The number of array elements is displayed in parentheses to the
right of Array[]. The number begins at 0
(zero) and increases by one each time you add an array element.
-
Right-click Array[], and then select
Add Array Element.
A new array element (Array[1]) is added
under Array[].
-
Repeat step 12 two more times.
Array elements Array[2] and
Array[3] are added to
Array[] under
Array[1], and (3
elements) is added to the right of
Array[].