cancel
Showing results for 
Search instead for 
Did you mean: 

CamelBehavior supporting BpmnError

sdeschenes
Champ in-the-making
Champ in-the-making
Hi all,

It's been a month I'm working with activiti and camel and I love the possibility it gave me. But, I've look at BpmnError and it isn't supported by the Behavior. Do you see any bad reason to not propagate the Error to Activiti from camel?

Let say I've got this error Management in a camel Route :

onException(WhateverException.class).handled(true).throwException(new BpmnError("technicalException")).end();


Changing the method
handleCamelException
in CamelBehavior for calling
ErrorPropagation.propagateError(error, execution);
if the CamelException is an instance of BpmnError then it seems to let me manage the Exception in the process.

Do you see any problems of doing that ? If no, I will submit a test case and my modification in an issue.

Thanks for any comments!
4 REPLIES 4

smirzai
Champ on-the-rise
Champ on-the-rise
Hi
You are right. It is already implemented as a pull request waiting to be merged:
https://github.com/Activiti/Activiti/pull/400

sdeschenes
Champ in-the-making
Champ in-the-making
Is this version is available somewhere, with your modification, AND usable externally without having to build it?

Thanks fro your work!

smirzai
Champ on-the-rise
Champ on-the-rise
Not actually, it may appear in the next release. I can compile and send you the binaries of course.

sdeschenes
Champ in-the-making
Champ in-the-making
Thanks Smirzai, I can compile them to, without problems. Just didn't want to place the building on our CI server if it was already available somewhere. But really really thanks!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.