Collection of (similar or different kind of) messages is a common requirement in any landscape and we are quite familiar with how to create such patterns using ccBPM - thanks to enormous wealth available on SDN, but since the existence of Process Orchestration approach of developing BPM scenarios has changed a lot which means no more ccBPM and eventually NW BPM has to take the onus of accomplishing these requirements.
So the objective of this blog is to show how we can create collect patterns using NW BPM in Process Orchestration.
Scenario Description:
The requirement is to collect as many as messages from the Source system for a certain amount of time and once the time limit gets exceeded split the collected messages (using multimapping) and send the same to different target systems.
Note - Splitting of collected messages can be done outside BPM also.
NW BPM Solution:
Note - I am not explaining end to end BPM development, and the purview of this blog is very much confined to the NW BPM flow only. Having said that, in case you want to get acquainted with BPM development please refer Willam's article on the same:
http://scn.sap.com/docs/DOC-28803
Step Properties:
Start Step ->
"Collect Message" IME (Intermediate Message Event) ->
Same message trigger i.e. "Start_Message" is getting used in both "Start" and "Collect Message" IME
Source Messages are collected inside "Collect_Message" process context using "Merge" assignment
Exclusive Choice ->
Timer Event ->
I have defined 80 seconds of time interval to collect as many as business messages
"Split_Mapping" (Automated Activity) ->
I am calling message mapping inside NW BPM process to split collected messages into two different target messages (having different structures)
For more details on how to call mapping inside BPM, please refer below article:
Target_Message1 (Automated Activity) ->
First target message send to PI
Target_Message2 (Automated Activity) ->
Second target message to PI
In the next series (Part II) of this blog, i will try to explain how we can collect messages of different structures using correlation condition inside NW BPM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |