Developer Workflow Guide > Gateways > Splitting a Sequence Flow into Multiple Branches
  

Splitting a Sequence Flow into Multiple Branches

Use a gateway to split a sequence flow into multiple sequence flows. Connect the gateway to multiple objects. Each connection is a sequence flow that begins a branch in the workflow.
    1. Add a gateway to the workflow.
    2. Add objects to the workflow to represent the actions that the Data Integration Service might take on different branches.
    3. Configure the objects.
    4. Connect the gateway to each object. Use the editor, or use the Sequence Flows tab.
    5. Select the gateway.
    6. In the Properties view, click the Sequence Flows tab.
    7. To set the default sequence flow, select a sequence flow and click Set as Default.
    8. Define a condition expression in each outgoing sequence flow that is not the default sequence flow.
    9. Use the arrows to define the order in which the Data Integration Service evaluates the sequence flows.
Use another gateway to merge the branches to a single sequence flow. Use the same type of gateway to create the branches and to merge the branches.