CamelBehavior supporting BpmnError
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2014 02:45 PM
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 :
Changing the method
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!
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!
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2014 09:15 AM
Hi
You are right. It is already implemented as a pull request waiting to be merged:
https://github.com/Activiti/Activiti/pull/400
You are right. It is already implemented as a pull request waiting to be merged:
https://github.com/Activiti/Activiti/pull/400
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2014 12:16 PM
Is this version is available somewhere, with your modification, AND usable externally without having to build it?
Thanks fro your work!
Thanks fro your work!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 04:43 AM
Not actually, it may appear in the next release. I can compile and send you the binaries of course.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 09:05 AM
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!