OriginalPostID-127429
Discussion posts and replies are publicly visible
Hi there, how do you configure a loop inside a process model? Can you point me to a link?
Mike, Would using a loop be more efficient than the MNI option you suggested since it won't spawn multiple processes?
Hi,
If it can be done using MNI, i believe that is the preferred "official" approach within Appian - personally, the only times I design in-process loops are for things where it's impossible or too complicated to do in an MNI node. And I only use MNI for things that are too complicated to use an a!forEach loop for. I'm not really sure what you're trying to do, so it's hard to give exact advice.
As a side note: this is a very old thread and (for reference) i wasn't sent any internal notification that you'd replied to me - you might find better answers by starting a new thread here (as long as you've searched old posts for either a solution or a more recent thread on the topic first, i believe you're fine to create a new post).
Very simply you have process flow reach an XOR gate. If one path is chosen, it leads to the end, if another path is chosen it leads to a node you've already completed; you'll complete it again and go to the XOR gate.
You want to point the looping flow to a Script Task or User Input task; it causes problems when you try to loop back to gateways. Even if you have to make a script task that does nothing.
In addition to what davidl280 mentioned. If you want to loop a single node many times. You can look into MNI (Multiple Node Instances). It will keep on starting a node until a specific condition is reached.
-Kunal