Hi can anyone advise on the below queries?
- Is a end step required to end the process instance?
- How to achieve looping in workflow and whether it is recommend to perform looping of status checking in workflow or in application side?
Thanks
Hi can anyone advise on the below queries?
Thanks
Hello,
1. No, no "End" step is required. The process will complete when there are no more execution paths to execute and all paths have ended without error.
2. You can loop on an activity if needed in a couple ways depending on what you're trying to do:
- Here's how to simulate a "For Each" type loop: http://help.k2.com/en/kb000685.aspx
- You could also draw a line from the activity, hold "Ctrl" and connect the line back to the same activity (creating a loop). You could add actions/outcomes for this line or a line rule to check some other condition.
In most cases, option 1 will fulfill your requirement. Sometimes option 2 is necessary.
In general, it is not necessary to have a process loop. because the process will stop on any client event to wait for input - it will continue as soon as input is received (or an escalation rule moves execution in some other way) so there is no need to repeatedly check status.
HTH,
Tyler
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.