camunda-community-hub / camunda-platform-7-reactor

Event Driven process applications
https://camunda.github.io/camunda-bpm-reactor/
Apache License 2.0
80 stars 34 forks source link

BpmnError doesn't handle for ReactorTaskListener #90

Open EugeneMsv opened 5 years ago

EugeneMsv commented 5 years ago

I'm using your plugin and when the ReactorTaskListener throws BpmnError into notify method it doesn't handled. I can't catch it using task_error element into bpmn model, it just rollbacks transaction.

jangalinski commented 5 years ago

Yes, indeed, you are right. I actually never considered this behavior, but it is plausible since the CamundaEventbus is configured using the UncaughtErrorHandler which throws runtime exceptions ...

A possible fix would be to filter on bpmn errors.

I will mark this as a bug.