[jira] [Commented] (CAMEL-13438) Camel jBPM WorkItemHandler should allow passthrough of Exceptions

2019-04-19 Thread Duncan Doyle (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-13438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16822077#comment-16822077
 ] 

Duncan Doyle commented on CAMEL-13438:
--

We also need to backport this to 2.23-2

> 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: 2.23.2, 3.0.0-M2
>Reporter: Duncan Doyle
>Assignee: Maciej Swiderski
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)


[jira] [Commented] (CAMEL-13438) Camel jBPM WorkItemHandler should allow passthrough of Exceptions

2019-04-19 Thread Duncan Doyle (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-13438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16822061#comment-16822061
 ] 

Duncan Doyle commented on CAMEL-13438:
--

PR: [https://github.com/apache/camel/pull/2875]

> 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: 2.23.2, 3.0.0-M2
>Reporter: Duncan Doyle
>Assignee: Maciej Swiderski
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)