cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement looping logic in snaplogic?

amardeep2021
New Contributor III

I have a scenario to repeat a specific action if the expression is true. I don’t have a specific control over the number of times that I need to repeat. It has to be till the expression is true. Does anyone knows which snap or approach would be useful to implement this logic? Please help.

Regards,
Amar.

10 REPLIES 10

 

alchemiz  hi can you please explain whole logic

hi can you please explain the whole logic please 

SpiroTaleski
Valued Contributor

@amardeep2021

You can use Pipeline Execute Snap.

I am attaching two pipeline skeleton’s for two scenarios:

  1. Using Parent-Child(Invoking Child pipeline)

SC_1_2022_01_24.slp (7.8 KB)

  1. Pipeline Self-Invoking

SC_2_2022_01_24.slp (8.3 KB)

Hope this helps!

Regards,
Spiro Taleski

rgoerwit
New Contributor II

For me SC_1_2022_01_24.slp, when supplied with a valid child pipeline and executed, results in a stack overflow - an infinite loop of some kind. It does that while prepping the pipeline. The child never actually executes as far as I can tell.

amardeep2021
New Contributor III

Thanks Mike for sharing. Can you please share me the pipeline for reference.?