How to handle loop in workflow?

Did you look at this?

No need to re-engineer the wheel if it’s rolling well enough.