Signal an boundary error event from JavaDelegate

Hi, in the documents of the course “Camunda for Java Developers” I have this excerpt from a slide:
image

My question is: how can I signal the error boundary event from a JavaDelegate?

Thanks in advance,
Christian

You can throw a BPMN error in the java code when you want to trigger it.

throw new BpmnError("ErrorCode");

oops, this seemed to be too easy… . But it worked, many thanks!

1 Like