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

SpiroTaleski
Valued Contributor

@amardeep2021

Do you want to invoke the pipeline as many times as the expression is true?

Regards,
Spiro Taleski

amardeep2021
New Contributor III

Yes Spiro.

Hi Amardeep,

Good day, have you tried setting up using File Poller?

I did create before a PoC pipeline before that is set to ultra task (can’t find the pipeline, but the logic is something like this), hope this helps

image

Create a trigger file and upload it in the same project folder as the pipeline, the ‘poller.trigger’ file must always exist so that there will be a streaming object to trigger the next snap.

image

Thanks,
EmEm