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

  1. 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.
  2. 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

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

  4. To create multiple streams, right click Repeater Service and select Multiple Stream. The Multiple Stream Dialog Box is displayed.
  5. 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.
  6. 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.
  7. Click Map button. The stream created is displayed in the Stream Information Table.
  8. 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.
  9. Click the Map button. The second stream is displayed in the Stream Information Table (see Figure 153).


    Figure 153: Create Second Stream

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