Hi Devteam,
In the past I spoke of two seperate tasks for starting and ending a loop. The current proposal looks like this so I love this solution.
We skipped the "Task type of loop" because it is really not a Task. Also, it would not have made displaying the looping easier. This is more than an ordinary loop and for that reason it just can't be dragn' drop. I hope that you like this solution anyway!
Having this done at job level with colours you have a complete overview of your loopings. I find the coulours now a bit hard to see in the task list though.
Yes, the mockup was bad. I think we will used the "bended" connectors and also indent it a bit out (like in the "bend" example) to make it more clear.
Having it this way you could have one task getting all the loop info and the following tasks use this in the loop settings as variable.
Just wondering how to address the looping variables. Will there be a job.loop.[name/nr/colour].<looping values> variables?
Correct. We are not sure about how the Variables will look like exactly but all values should be easily reachable. We see no need right now to specify a Loop id/name etc. because our Variables will be context based and if you use a Loop Variable in a Task within a loop it will always point to the current loop.
The conditions, you can use to drop out of the loop, but you might want to use the set variable task for this with a normal condition. The set variable could set the looping itteration counter to the total of itterations, but an action of jumping out of the current loop could do the trick also, it might be better. But I think changing the loop counter shoud work also. That's like jumping back into time...
Task Conditions will always be evaluated before the Task is run. I agree that one addition could be to break out the loop in some way would be good.
With the change order button in the job view, you have to wacht out with the looping. You could place a task in a different loop, or will the loop break? There has to be some thinking here.
Yes, it could be messy. We will add warnings when trying to add the Job when order has changed in a wrong way, for example if End Task is before Start Task or a Task has been removed. If a loop covers Task 1 and Task 2 and we move order of Task 2 after Task 3 then the loop will cover all 3 Tasks and we will try to redraw loops.
There might be an extra option in the task at the on error tab: jumping out of the current loop.
Nice addition!
The gridview in the screenshot is not as clear as it should be I think. I think the tasknames should be there also. But they are only mockups, right?
Yes, correct.
This was my brainwave at the moment, more to come.
We like your brainwaves 😁 Thanks!