-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of BPMN Error Events #2037
Comments
@madhurrya would you please get with Jon to discuss testing this issue. |
@calexh-sar Sure will do. Is it 'ready for QA'? |
This model shows the unhandled Error as expected. But this doesn't I am not sure why. Is it because the first one is inside a sub process and these two are not? But I don't think the error end events has to be inside a sub process always. |
But this doesn't It seems the End event instruction is causing this issue. If I remove it, it seems to show the error. Update : it seems the same happens with collapsed sub processes also if there are end event instructions |
In both these models I have called the same error end event model. But this one doesn't |
@jbirddog the above issues are fixed now. All of them show the unhandled Error now. But noticed this behavior. The ones that were working as expected earlier, when we run them after displaying the error those instances completes. https://mysql.spiffcrm.com/i/480 https://mysql.spiffcrm.com/i/482 But the ones that were not working last time, they show the error message now. But those instances don't get completed. They seem to be stuck at the next task in yellow. https://mysql.spiffcrm.com/i/479 https://mysql.spiffcrm.com/i/481 https://mysql.spiffcrm.com/i/483 It looks odd and I feel this has to be fixed. |
@jbirddog When I run a Multi instance sub process with an error endevent, it shows the error at the first instance and it doesn't seem to run the other instances. It seems to be stuck there like the above instances When I ran that model before the current fix, it ran all the instances and showed the error at the end. I am not sure what the exact behavior should be for multi instances. |
This is due to the bug fix - before we were waiting until the end to see if there were any unhandled events, but this is not really correct. For instance if there was an unhandled event then 10 human tasks, we shouldn't wait until the end to try and show it. Now with the fix as soon as Spiff tells us there is an unhandled event in the workflow we error out. This is much closer to what you would expect from an uncaught exception in traditional programming. |
@jbirddog Ok thanks for the explanation. |
BPMN Error Events should be handled like exceptions: they should propogate up the call activity/subprocess stack and if are not caught at the top level, caught by the engine. The instance would be terminated by default, but we might offer the option of suspending the instance instead.
To get this working as expected, we would need to
The text was updated successfully, but these errors were encountered: