cancel
Showing results for 
Search instead for 
Did you mean: 

Necessary steps for incorporating BPM collect pattern?

Former Member
0 Kudos

I am working on my first BPM.

The scenario is as follows: Supplier information (CREMAS) has to be splitted into their respective receiver countries (This has been done with a switch) For each country all CREMAS has to be collected into one XML and sent.

I have decided on BPMCollectPatternTime.

What should I do in order to include a CollectPattern in my BPM?

What design objects should I copy to my namespace?

And how to configure receive, loop and transformation?

Accepted Solutions (0)

Answers (3)

Answers (3)

prateek
Active Contributor
0 Kudos

Loop - Receive - Container (Use Multiline Container - End Loop) - Transform (to convert all CREMAS messages into a single message) Transform (to Split the files based on City name) - Send

Switch in ur case would complicate the design. Better to handle it in transform mapping.

Regards,

Prateek

Former Member
0 Kudos

Hi Thomas,

So you are sending multiple CREMAS IDocs to SAP XI and you want a BPM to collect the IDocs together into separate XML messages by country.

In this case you dont need a switch statement, just use a time based collection routine and a correllation on the country field.

We have used this method extensively, you want to choose how to terminate the BPM. You can set up an infinite loop scenario with a time based termination via a deadline branch.

In order to use this in your own BPM create the Integration Process and add the following steps in the editor, this will aid you in understanding the various steps and how the process works.

You will need 3 Abstract Message Types:

1) Single IDoc Message Type

2) Multiline IDoc Message Type for Appended IDocs

3) Non Multiline IDoc Message type for the List of collected IDocs

First add a block step

Mode = Default

Local Correlation = Define Correlation on Country

Within the block step:

Deadline Branch = 1 minute for example

Control step = Throw Exception

|

Main Branch = boldLoop Step Beginbold --- Receive Idoc Step --- Container Operation --- boldLoop Step Endbold

Loop Step

Condition = (1 = 1)

Receive Step

Message = Abstract Message Interface

Use Correlation = Local Correlation

Container Operation

Operation Append

Outside the block step:

Transformation Step

Send Step

Hope this helps,

Pete

SudhirT
Active Contributor
0 Kudos

Hi Thomas,

Check this,

Thanks!