Duncan Doyle created CAMEL-13438:
------------------------------------

             Summary: Camel jBPM WorkItemHandler should allow passthrough of 
Exceptions
                 Key: CAMEL-13438
                 URL: https://issues.apache.org/jira/browse/CAMEL-13438
             Project: Camel
          Issue Type: Bug
          Components: camel-jbpm
    Affects Versions: 3.0.0-M2, 2.23.2
            Reporter: Duncan Doyle
            Assignee: Maciej Swiderski


Currently, the Camel-JBPM WorkItemHandler wraps every exception coming from a 
Camel Route into a WorkItemRuntimeException. Although this is a safe way to 
handle the exceptions, it's also very inflexible, as we can only return a 
single exception type, and thus only react to a single exception type in our 
BPMN2 model.

We should add a "HandleExceptions" WIH parameter to indicate whether any 
exceptions should be handled by the WorkItemHandler or not. That way, we can 
make the Camel Routes responsible for handling the exceptions, which gives us 
much greater flexibility wrt error and exception handling.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to