Modeling Guide for SAP Data Hub

Control Flow of Execution

SAP Data Hub provides the data workflow operators Workflow Merge (or), Workflow Merge (and), and Workflow Split to control the flow of execution in a data workflow.

A typical use case for these data workflow operators is parallel executions within a data workflow.

Operator

Description

Workflow Merge (or)

A message is sent to the output port once the operator receives a message at any of its input ports. All further inputs are ignored.

The operator has two input ports and one output port.

Workflow Merge (and)

This operator sends a message to the output port once it receives a message on both the input ports. The process shuts down after sending the message.

The Workflow Merge (and) operator is intended to control the flow of execution when there are parallel executions within the data workflow.

The operator has two input ports and one output port. Leaving the output port unconnected results in a data workflow execution failure once the operator receives an input message.

Workflow Split

This operator helps duplicate an input message into two output messages.

The Workflow Split operator is intended to control the flow of execution when there are parallel executions within the graph.

The operator has one input port and two output ports. Operator sends the message at the input port to both the output ports.

These operators are listed in SAP Data Hub Modeler under the Data Workflow category.

Example

Consider this data workflow example that uses the Workflow Split, Workflow Merge (and), and Workflow Merge (or) operators.

In this example, after the engine successfully executes the Pipeline operator, the output message is duplicated to both the HANA Flowgraph operator and the BW Process Chain operator. This means that, both of the latter operators will run in parallel. The Workflow Merge (and) operator ensures that a message is sent to the SAP Data Services operator only if both the operators have finished successfully. The Workflow Merge (or) operator takes the first incoming message and forwards it to the Workflow Terminator operator that shuts down the data workflow execution.