Need process to raise exception if workitem is completing prematurely due to no finding a valid route line but yet reached an End step.
In previous designer this can be handled by putting a flag logic in Process Completion Event.
Need process to raise exception if workitem is completing prematurely due to no finding a valid route line but yet reached an End step.
In previous designer this can be handled by putting a flag logic in Process Completion Event.
You could still do similar flag logic, just in a decision activity just before the end step. I’m not certain that will fully address what you are looking for - do you have decisions that could result in no output, and therefore end the workflow?
If the result didn’t match any of the conditions defined in the decision routes what happens to the workitem?
If the result didn’t match any of the conditions defined in the decision routes what happens to the workitem?
It will just disappear, but it isn’t an error as far as K2 is concerned. I wasn’t aware of a way to handle this scenario in the past other than treat it as a bug and make sure all possible conditions have a route
With the old designer I used Process Completion Event to catch this scenario.
Before the completion stage, set a ProcessCompleted Datafield to Y.
In Process Completion Event if this flag is not Y then raise exception (send it to an Error stage), so that workitem is not prematurely completed in silent.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.