Forum Discussion
Hi @NAl,
You want to do something like while loop, but SnapLogic as I know is not supporting any type of loop.
SnapLogic is stateless platform. That means when some snap is executed you can’t go back again and execute it.
One solution to do loop is to create another one pipeline like this and at the end with ForEach snap call them each other.
To work as loop you will need to select in Execution Mode this FIRE_AND_FORGET.
With this FIRE_AND_FORGET it will execute the pipeline what we are calling and it will not wait for response.
If it’s not selected this FIRE_AND_FORGET it will work the same way as Pipeline Execute snap
and because it will wait for response of the called pipeline the instances will never be closed.
This is not best solution because:
- ForEach in documentation is deprecated.
- If we do some change in one of those two pipelines you will also need to apply it to the second.