And I throw a BPMN in my java delegate → throw new BpmnError(“PocThrowError1”);
And In the BPMN I create a error <bpmn:error id=“PocThrowError1” name=“PocThrowError1” errorCode=“PocThrowError1” /> and put it in a boundary error
<bpmn:boundaryEvent id=“BoundaryEvent_17d1tdf” attachedToRef=“Task_1huxe3x”> bpmn:outgoingSequenceFlow_0ffrfsl</bpmn:outgoing>
<bpmn:errorEventDefinition errorRef=“PocThrowError1” />
</bpmn:boundaryEvent>
In the properties of the process engine —> true
I understand this is all i need to cath the bpmnError no?
But i have this error: Cannot instantiate process definition PocErrorNacho:1:9ecac7ee-759f-11e9-98f8-38dead6ca08a: ENGINE-02042 Execution with id ‘Task_113tjh4’ throws an error event with errorCode ‘PocThrowError1’, but no error handler was defined.
And another question Is possible doesn’t put any errorCode in the boundary to Catch all or the different BPMNError i thrown?
True, I dont see it. I put the boundary in incorrect position.
But now I have this error → Cannot instantiate process definition PocErrorNacho:1:c7e3e720-7625-11e9-8e3d-38dead6ca08a: ENGINE-02033 Delegate Expression ‘${nachoController.execute(execution)}’ did neither resolve to an implementation of ‘interface org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior’ nor 'interface org.camunda.bpm.engine.delegate.JavaDelegate