Solved

Loop Step Help

  • 12 December 2018
  • 2 replies
  • 55 views

Badge +8

Hi All

 

I have a loop step in my workflow using a reference created via a smartobject.

This works OK and at each step of the loop the user can approve or reject

 

If they reject then the workflow is routed back to the beginning so that the item can be changed and resubmitted

 

Problem I have is that the loop index is not being reset.  

If there are 10 users in the loop and the reject occurs at user 4 when it's resubmitted the loop index starts at 5 instead of going back to 1

How can I make the loop start from the beginning again?

 

Thanks 

Paul

icon

Best answer by psturmey 13 December 2018, 00:19

View original

2 replies

Badge +8

Hi Paul,

 

As it stands today the only way for the loop counter to be reset is for the loop step to flow out of the Completed outcome line.  There is an Idea posted for having a "Reset Loop" option that I encourage you to vote for so it will raise in priority. APIT-I-742 

 

In your scenario you can work around this by building in "short circut" logic which finishes looping through the loop step without doing anything with those items.  You then can have the completed line of the loop step go back to the beginning or move on depending upon whether it is actually completed or exited early. Something like this: 

 

 

I hope this helps.

Badge +8

Hi

 

thanks for the reply... seems what I need to achive is not possible so your workaround looks like a solution

 

I just voted on the feature request so hope to see this in a future release

 

thanks

Paul

 

Reply