Split activity
The Split activity is a variation of the For Each activity that can be used to break up very large messages to improve performance
During runtime, the Split activity
iterates through recurring elements of a variable, processing activities
on each iteration. . With the Split activity,
you define how many recurring elements are returned with each loop,
while the For Each activity always returns
one recurring element each loop.
To use a Split activity complete the following steps:
- Open the Activities tab.
- Open the Logic folder in the Activities tab.
- Drag the Split activity onto the orchestration.
- Complete the properties fields displayed in the Summary pane.
You can add other activities within the Split loop as required. Use the Break Loop or Continue activities to control iterations of the Split loop.
Properties
Complete these fields for the Split activity:
Field | Description |
---|---|
Activity Name | Specifies the name of the activity. |
Variable Name | Displays a list of defined variables for an orchestration. Select a variable that contains the recurring element to loop through. |
Element Name | Specifies the recurring element to loop through. Click [...] to browse for a recurring element. The Select Recurring Element dialog box is displayed. Select a recurring element and click OK. An XPath expression that refers to the recurring element is displayed in the Element Name field. You can edit the generated XPath expression in the Element Name field. |
Return __ Recurring Elements Per Loop | Specifies the number of recurring elements to returned with each loop. The recurring elements are stored in the loopvalue_X variable. |
Variable to Store the Result | |
Variable Name | Specifies the variable that holds the set of
recurring elements returned with each loop. The Variable
Name field is populated with the loopvalue_X variable
which is created automatically for this activity. Attention: Do
not use the loopvalue_X variable outside of the Split activity.
The scope of these variables are limited to the Split activity.
|