
You have the option of defining the sequence in which a process sends received messages. In doing so, you can specify that the process must wait for an acknowledgement from the receiver each time that it sends a message.
If the messages are sent from different business systems, it is only possible to serialize them by using an integration process. However, if the messages all come from just one business system, check whether it would not be better if this business system executes the serialization.
You can define a serialization in different ways. The following table shows the various options. You can find the examples in the Enterprise Services Repository under SAP Basis → SAP Basis <release number>, namespace http://sap.com/xi/XI/System/Patterns.
| Serialization | Description | Example |
|---|---|---|
|
Start Message |
The process is started when a particular message is received |
BpmPatternSerializeOneTrigger |
|
Multiple Start Messages |
Different messages can start the process |
BpmPatternSerializeMultipleTrigger |
Three receive steps are defined in this example process. The corresponding messages are received in the container elements FirstMessage, SecondMessage, or ThirdMessage.
Correlation
Note that you must ensure that the message of the first receive step - FirstMessage - really is the first message to arrive. If, for example, SecondMessagearrives first, it cannot be assigned to the process.
Once all three messages have been received, the process sends the messages in reverse order. Once it has sent a message, the process waits for the acknowledgment from the receiver to arrive before sending the next message.
All three abstract interfaces are used as inbound and outbound interfaces (more information: Process Signature ).
The following graphic illustrates the process definition:
Three receive steps are defined in this example process. The corresponding messages are received in the container elements FirstMessage, SecondMessage, or ThirdMessage.
Correlation
Finally, the process sends the received messages in the specified sequence. Each send step waits for the corresponding acknowledgment once it has sent its message.
All three abstract interfaces are used as inbound and outbound interfaces (more information: Process Signature ).
The following graphic illustrates the process definition:
More Information:
Correlation: Defining Assignment of Messages to Process Instances