Creating Arrays of Working Data

Prerequisites:

You performed the steps in Creating a Practice Process App for Data Mapping.

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

  1. Select an orchestration workflow to display it in the orchestration workflow editor.
  2. Click the Data Mapping tab of the orchestration workflow Property Editor.
  3. Create the array container data element by right-clicking the Working Data step input, selecting Add New, and then selecting Complex Type.
  4. Rename the new array container data element, if you want.
  5. Create the array by right-clicking the array container data element again, selecting Add Child, and then selecting a type.
  6. Right-click the array, and then select Properties Mode, if it is not already selected.

  7. In the properties area under Misc, select the IsUnbounded row.
  8. Click the down arrow next to False, and then select True.
  9. Close the properties area by right-clicking the array and then selecting Mapping Mode.
  10. Rename the array, if you want.
  11. 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.)
  12. 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:

  1. In App Explorer, select DataMappingOrchWF under the Orchestration Workflows heading.
  2. 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.)

  3. Right-click the WorkingData step input, select Add New, and then select Complex Type.

    A new data element (ComplexType), which is the array container, is added under the WorkingData step input.

  4. Change the name of the new data element (ComplexType) to ArrayContainer.
  5. Right-click ArrayContainer, select Add Child, and then select a type.

    A new child element is added under ArrayContainer.

  6. Change the name of the new child element to Array.
  7. Right-click Array, and then select Properties Mode.

    The properties area opens on the right side of the orchestration workflow Property Editor.

  8. In the properties area under Misc, select the IsUnbounded row.
  9. 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.

  10. 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.

  11. Right-click Array[], and then select Add Array Element.

    A new array element (Array[1]) is added under Array[].

  12. Repeat step 11 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[].

Related Topics

Using Data Mapping