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

What are error variables? #3726

Open
falko opened this issue Apr 26, 2024 · 7 comments
Open

What are error variables? #3726

falko opened this issue Apr 26, 2024 · 7 comments
Labels
component:zeebe Issues related with Zeebe project

Comments

@falko
Copy link
Member

falko commented Apr 26, 2024

The error events page talks about "error variables" but does not explain what that is:

All error variables are merged into the error catch event. These variables can be merged into the process instance by defining an output mapping at the error catch event.

I assume it means the variables that can be passed to a ThrowError RPC message when failing a job in a client: https://docs.camunda.io/docs/apis-tools/zeebe-api/gateway-service/#throwerror-rpc

Or is there a way to send data with an Error Throw Event?

Or are there some magic variables, e.g. that the errorCode is automatically stored in a local variable of the catching Error Event?

I'm asking because, I would have needed one of the latter two options for a customer project and I vaguely remember seeing a feature request in that direction.

@falko
Copy link
Member Author

falko commented Apr 26, 2024

@jothikiruthika FYI

@akeller
Copy link
Member

akeller commented Apr 26, 2024

Reached out to #ask-zeebe to triage - https://camunda.slack.com/archives/CSQ2E3BT4/p1714160024787079

@akeller akeller added the component:zeebe Issues related with Zeebe project label Apr 26, 2024
@mustafadagher
Copy link
Contributor

mustafadagher commented Apr 29, 2024

ZPA triage:

@mustafadagher
Copy link
Contributor

@falko what is the urgency on this from your side?

@falko
Copy link
Member Author

falko commented May 7, 2024

@mustafadagher Either of the following feature requests would be a solution for the customer to "send data with an Error Throw Event":

There is a workaround to use a message throw event in the child process and a message boundary event on the call activity in the parent process. However, that involves an extra job worker and is much more expensive in high-performance scenarios. This workaround could be improved by sending messages directly inside the engine. But that would likely still come with correlation overhead while Errors/Escalations directly go to the parent process.

@falko
Copy link
Member Author

falko commented May 7, 2024

Urgency is medium. It can be worked around by throwing more hardware at the problem, but the hardware budget for this customer is already quite high

@falko
Copy link
Member Author

falko commented May 7, 2024

@jothikiruthika will investigate if a multi-instance completion condition could solve it for her customer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:zeebe Issues related with Zeebe project
Projects
None yet
Development

No branches or pull requests

3 participants