cancel
Showing results for 
Search instead for 
Did you mean: 

ForEach Block not working in BPM

Former Member
0 Kudos

Hi all,

I've developed a BP with a split mapping and ForEach block similar to the "MultipleFlightBookingCoordination" BP.

But whatever I place inside the ForEach block is not executed. Not even a simple container operation is executed.

I get no exceptions, no errors in process engine monitoring, everything looks fine.

The ForEach block is listed in the work item selection and in the graphical view it looks like the steps inside the block have been executed but that's definitely not the case.

Why is that??

Thanks in advance

Karsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey,

Have you defined a multiline container and is it used in te block step.

regards,

Milan

Former Member
0 Kudos

Hi Milan,

yes I have created a multiline container and also a non multiline container for the send step and so on.

And I have created a simple container operation setting a counter but not even that one is executed.

Whatever I place within the block would never be executed. Why??

Karsten

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Make sure u r making correct use of correlation.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

well, I don't really see the need of correlations in my scenario.

I want to send out messages for each "item" in the incoming messages.

Do I always need correlations when working with ForEach?

Karsten

prateek
Active Contributor
0 Kudos

Correlations shouldn't be mandatory but correct usage is imp.

If forEach is used in multicast scenario, a proper correlation is required.

The correct use of forEach is when u have multiple receivers and u r receiving data from multiple send step. Then a Receiver Determination step collects the list of receivers (in a multiline container). Now the forEach block gets executed for each receiver from the list.

Regards,

Prateek