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

For your reference hope this helps.

image

loop.zip (5.0 KB)

FYI, I just set the File poller to loop every 15 secs for the span of 60 seconds… setting this up to -1 and it will never end unless manually terminating the pipeline from the dashboard… removing the poller.trigger file will put the looper pipeline into a stall cause there is no streaming document that will trigger the parent pipeline 🙂

I would suggest to create a scheduled task and run pipeline daily, then put a 24 hours in the polling timeout