You have the option of collecting and bundling messages from different interfaces. To do so, define the corresponding receive step in a fork.
You can define the collecting of messages in different ways. The following table shows the various options. You can find the examples in the Enterprise Services Repository underSAP Basis → SAP Basis <release number>, namespace http://sap.com/xi/XI/System/Patterns.
Collect | Description | Example |
---|---|---|
Collect all messages |
Collects all messages |
BpmPatternCollectMultiIf |
Collect particular messages only |
Ends collecting when a specified condition is fulfilled |
BpmPatternCollectMultiIfCondition |
NewMessage
The processes use three of the abstract interfaces as inbound interfaces, and one as an outbound interface (see also: Process Signature )
Collect all messages
To collect all messages, define that the fork is complete once all branches have been processed.
The following graphic illustrates the process definition:
Collect Messages By Using a Condition
You can also specify that the collecting of messages stops when a particular condition is fulfilled. Define a relevant end condition for the fork for this purpose. In the following example, the fork is complete once one of the following conditions returns true:
The system checks the conditions in the sequence that you specified.
The following graphic illustrates the process definition:
More Information:
Correlation: Defining Assignment of Messages to Process Instances