-
1. Re: esb service fault handling in jBMP
marklittle Nov 7, 2007 7:30 AM (in response to kadlecp)What kind of failure do you have in mind? A crash failure? A code failure (e.g., try/catch)?
-
2. Re: esb service fault handling in jBMP
kadlecp Nov 7, 2007 7:45 AM (in response to kadlecp)I have in mind simple situation when service action throws ActionProcessingPipeline exception. Then the fault message is sent to FaultTo endpoint.
Imagine process graph.... I would like to have two edges going from the service node. One edge would mean that the work was done (service did its work correctly, without problems). The other edge would mean, that service action processing pipeline did not finish correctly its work (some action threw ActionProcessingPipeline exception). Can I model this behaviour? -
3. Re: esb service fault handling in jBMP
marklittle Nov 7, 2007 8:24 AM (in response to kadlecp)We're currently overhauling the jBPM/ESB integration. What you outline should work. If you think it doesn't, please create a JIRA and we'll look into it as part of that overhaul.
-
4. Re: esb service fault handling in jBMP
kadlecp Nov 7, 2007 9:15 AM (in response to kadlecp)I can not try it because I do not know how to set up it (if it can be). How shall I name the fault edge? Generally, how shall I tell jBPM, that if service throws exception, what edge to take or what to do?
If I take a look at EsbActionHandler.java, it seems to me, that jBPM can not be notified, when esb service throws exception, because message field "FaultTo" is never set. Moreover, I call esb service asynchronously, so jBPM waits for signalCommand with name of the edge to take. But if esb service fails, esb service does not call signalCommand. ActionProcessingPipeline is terminated, I do not have opportunity to send signalCommand with the name of the fault edge...
I use JBossESB-4.2.1.GA -
5. Re: esb service fault handling in jBMP
kadlecp Nov 7, 2007 9:24 AM (in response to kadlecp)Shall I create the JIRA issue? Maybe it is not a bug, but it is feature request....
-
6. Re: esb service fault handling in jBMP
marklittle Nov 7, 2007 10:03 AM (in response to kadlecp)Create the JIRA.
-
7. Re: esb service fault handling in jBMP
kadlecp Nov 7, 2007 10:27 AM (in response to kadlecp)I have create the JIRA issue.
Its address is http://jira.jboss.org/jira/browse/JBESB-1313