Skip to content
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

SW - make process exception accessible using an expression within SW definition #3563

Open
deepakkapoor23 opened this issue Jun 18, 2024 · 1 comment

Comments

@deepakkapoor23
Copy link

deepakkapoor23 commented Jun 18, 2024

Description

Currently there is no way of accessing the last process exception if any and pass it along to a state for custom handling.

Please expose exception object stored in KogitoProcessContext::getContextData().get("Exception") as $WORKFLOW.ERROR to be referenced elsewhere in the workflow.

Also, ProcessEventListener::onError should be called not just for unhandled errors but for all errors including the ones handled with onError block in SW

Implementation ideas

No response

@deepakkapoor23
Copy link
Author

@fjtirado do you think its an easy change (to expose workflow exception as $WORKFLOW.ERROR) in the meantime until the new spec is implemented?

Without this provision in the current spec, there is no way of knowing what the error was (if its already handled), its not even logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant