cancel
Showing results for 
Search instead for 
Did you mean: 

**BPM loop

Former Member
0 Kudos

Hi all,

In a BPM Scenario,How to come out of an infinate loop.

Thanks,

srinivasa

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

By providing a condition

Loop in BPM acts like "while" statement of a programming language. Until that condition is met, it will keep on looping. e.g. If loop has some value = 5, then it will loop for 5 times and in each loop use Container Operation to Append 1 value to previous value.

Regards,

Prateek

JoelTrinidade
Active Contributor
0 Kudos

prateek you are funny ,,,

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

As i understand you have infinite loop and want to come out. The solution is:

1. Put you loop in block and mention in property of this block exception with any name.

2. Insert exception and deadline branches

3 In exception branch choose exception name which you created in block step

4 In deadline branch choose time interval (time to come out from infinite loop, for example, one minute)

Also you can check you case in standard SC SAP BASIS in namespace http://sap.com/xi/XI/System/Patterns -> integration process BpmPatternCollectTime

BR,

Dzmitry

Former Member
0 Kudos

Hi,

You can put loop after step 1. In loop put the condition which will be satisfied if its a error message. So take one container variable and update it according to your successful/unsuccessful processing and use it in condition editor of loop.

Thanks.