I’m using zeebe’s go client library to trigger instances and provide service task handlers.
I want to watch error event that a process instance is failed on exclusive gateway expression evaluating so that I can handle it such as send an email or so on.
for example I have expression:
= a = 1
but in the instance variables there’s no variable “a”, then instance will fail with error:
failed to evaluate expression '(a=1)': no variable found for name 'a'
So is there a way to catch this error so that my server can do some stuff? Thank you
If you are self-hosting Zeebe, you can load an exporter in the broker. This exports events. There is an Elastic Search exporter that can export to Elastic Search, where you could periodically query.