BPMN process component have a simple interface method which could return a value or throw exception.
Sometimes BPMN process component could ignore exceptions, which were thrown within JBPM process.
Junit test with example attached.