NextGen Knowledge Center

The Assign To Iterator Task

This task takes the currently selected rule/step, and either moves it to an existing Iterator, or creates an entirely new Iterator and puts the rule/step within it. When selecting the task, a dialog appears.

The Choose Existing Iterator option allows you to take the currently selected rule/step and move it underneath a specific pre-existing Iterator. If your rule/step already belongs to an Iterator, by default this option is selected and the current parent is selected in the drop-down menu.

The Create New Iterator option is the same dialog shown before, where you have the option of choosing what to iterate on.

Note that in this case, the variable j was automatically chosen, because the wizard detected that the currently selected step is part of a parent Iterator that is already using the i index variable. We can then choose to iterate through each OBR.16 field instead of on each OBR segment:.

After selecting OK, the step will now be placed inside a new nested Iterator. You can see from the following example that OBR.16.1 is being mapped into PV1.9.1, but now it is being done for each OBR segment, and in turn for each OBR.16 field repetition.