Using Repeater Node
Repeater node is used when output of one activity is sent to more than one activity. For example, data from a file source is sent to two File Targets.
Steps to use a Repeater Node
- Click hierarchy structure in the Repository View panel. Expand the Activities list of the Adeptia Server and select the Repeater Node. A list of repeater node activities is displayed.
Select the Repeater Service under Repeater Node and drag it to the Graph Canvas. A Repeater Service node is displayed in the graph canvas (see Figure 151).
Figure 151: Repeater Service Node
- Connect all activities with appropriate control flows in the Graph Canvas (see Figure 152).
Figure 152: Connect ActivitiesÂ
The Figure 152 displayed above does not illustrate the data flow. It is showing the sequence in which activities will be executed. This should be noted that File Target and File Target1 activities must not be connected with Repeater Service in parallel to each other.
Â
Now to specify data flow, multiple streams must be created with Repeater Service. - To create multiple streams, right click Repeater Service and select Multiple Stream. The Multiple Stream Dialog Box is displayed.
- Enter number of streams in the Enter Stream Count field and click Add Stream button. Since we have two outputs from repeater node, enter 2 in the Enter Stream Count field.
- Select 1 from the Stream dropdown list and select the first activity, which will consume the stream from the Repeater Node, from the Activities dropdown list.
- Click Map button. The stream created is displayed in the Stream Information Table.
- To create second stream, select 2 from the Stream dropdown list and select another activity, which will consume another stream from Repeater Node from Activities dropdown list.
Click the Map button. The second stream is displayed in the Stream Information Table (see Figure 153).
Figure 153: Create Second Stream- Click Done to save the streams created and return to the Graph Canvas. The created streams are displayed in the Graph Canvas by Artifact (see Figure 154).
Figure 154: Repeater Node with Multiple Stream