-
Notifications
You must be signed in to change notification settings - Fork 561
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
feat: extend fail job with incident key #18681
base: main
Are you sure you want to change the base?
Conversation
Hey, @korthout Please take your time to check this feature when you are free. |
Hi @skayliu 🙇 As always, thank you for contributing! I haven't reviewed the code because I'm not sure whether we want to proceed with the proposed solution. Specifically, I expect that querying of incidents will become available through the upcoming unified Camunda 8 API, which will enable new ways to respond to incidents: I worry that the current approach would also be needed for all other RPCs (as incidents can be raised at any point in process execution). I prefer looking at alternative solutions. @aleksander-dytko, Could you share your insights about the need to solve this problem in relation to upcoming changes in 8.6? Do we expect the incident API to be available in 8.6 already? |
Hi @korthout, thanks for mentioning this. With 8.6 we plan to have a unified Camunda 8 API with I would propose to accept this contribution to simplify incident handling.
Could you give an example here @korthout ? @skayliu thank you for the contribution 🙇 |
Most RPCs can result in one or several incidents on a process instance:
The same is true for one of our REST end points, but this will likely grow over time:
There can be many reasons why any of these would raise an incident:
Clearly, users need some way to respond to incidents. I'm challenging that we should have this in our API as it will leak to all endpoints. Instead, I'd argue that we need a single specific way to respond to incidents:
|
Description
As this issue feature request descripted Proposal: Extend FailJobResponse and ThrowErrorResponse with incidentKey #16580 ,the zeebe engine should response a fail job with incident key.
Related issues
part of #16580