-
Notifications
You must be signed in to change notification settings - Fork 553
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
Update variables on BPMN error #4080
Comments
If you could mutate with the error throw, you could even do a back-off retry in the worker. |
Is this request only about providing a timeout before a failed job is retried? |
For the issue at hand I do agree, that the increasing retry interval should be baked in the retrying of the service task itself (but probably we could have out-of-the-box support for that in future). It is not an error with any business reaction (that's what BPMN error events are for), but a technical problem that will probably be solved by retrying or end up with an incident. This should in general not be modeled. I thought I can easily point to a BP - but I think we should probably add this rule of thumb there: https://camunda.com/best-practices/dealing-with-problems-and-exceptions/#_distinguishing_between_strong_exceptions_strong_and_strong_results_strong Adding payload alongside the error seems like an interesting option - but not related to this problem IMHO. |
👍 +1 to adding variable content for errors |
Hi, @jwulf @saig0 @berndruecker, When throw error with variables, the variables will first been setted at the local scope of the job's associated task, then to the error event scope and last to the process scope. What you think? |
10882: Support throw error with variables r=korthout a=skayliu ## Description Support throw error with variables. ![image](https://user-images.githubusercontent.com/26370117/199285371-c30696cc-7468-4691-ae28-390408f812cd.png) ## Related issues <!-- Which issues are closed by this PR or are related --> closes #4337 closes #4080 closes #9473 Co-authored-by: skayliu <skay463@163.com>
At the moment you can't implement a retry loop with a timer that is entered via a BPMN error throw and has decrementing retries:
What I'd like to be able to do is this:
However, there is no opportunity to mutate anything when throwing a bpmn error from the client....
The text was updated successfully, but these errors were encountered: