Table of Contents

Search

  1. Preface
  2. Workflows
  3. Workflow Variables
  4. Workflow Parameters
  5. Cluster Tasks
  6. Command Task
  7. Human Task
  8. Mapping Task
  9. Notification Task
  10. Gateways
  11. Workflow Recovery
  12. Workflow Administration

Developer Workflow Guide

Developer Workflow Guide

Example: Creating Multiple Sequence Flows

Example: Creating Multiple Sequence Flows

You can develop a workflow that splits a sequence flow into multiple sequence flows and that uses conditions to determine the path that the workflow data follows. Use gateways to create the sequence flows. For example, you might develop a workflow that follows one sequence flow if a mapping runs successfully and follows another sequence flow if the mapping fails.
The following image shows a workflow that uses an Exclusive gateway to create the sequence flows:
The workflow includes a Mapping task that connects to an Exclusive gateway. The gateway splits the workflow into two sequence flows. Each sequence flow connects to a series of tasks. Another gateway merges the final sequence flow in each series into a single sequence flow that connects to the next object in the workflow.
The workflow includes the following components:
  • Start event and End event.
  • Mapping task. The task runs a mapping and assigns the
    Is Successful
    output to a boolean workflow variable.
  • Exclusive gateway that specifies two outgoing sequence flows. One of the sequence flows includes a condition that evaluates the value of the workflow variable. If the condition evaluates to true, the Data Integration Service runs the next task on the sequence flow. If the condition evaluates to false, the Data Integration Service runs the next task on the other sequence flow.
    In this example, each sequence flow includes a Command task, a Mapping task, and another Command task.
  • Exclusive gateway that merges the sequence flows into a single flow.
  • Notification task that sends an email to notify users of the status of the workflow.

0 COMMENTS

We’d like to hear from you!