[jboss-user] [jBPM] New message: "The problem with Exception Handling and esb<->bpm variables mapping"

Denis Sborets do-not-reply at jboss.com
Thu Feb 11 05:30:22 EST 2010

User development,

A new message was posted in the thread "The problem with Exception Handling and esb&lt;-&gt;bpm variables mapping":


Author  : Denis Sborets
Profile : http://community.jboss.org/people/dsborets

Hi All.
Can anybody help me with the next issue I have?

I try to do next:
1. I need to intercept exception inside ESB service, analyze exception,  add some parameter  to message body (e.g. my own error code, error description)
2. I need to have access for that parameters in the BPM, after current node forward me to another, for the reason exception transition.
The main problem is. It seems after exception BPM doesn't copy main body and parameters from esb to bpm's variables.... and maybe completely forget about output message.
This is some chunks of my esb and bpm descriptions files:
  <node name="Save">
    <action class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
                <mapping bpm="domainData" esb="domainData"/>
                <mapping esb="ERROR" bpm="ERROR_DESC"/>
                <mapping esb="ERROR_CODE" bpm="ERROR_CODE"/>
    <transition name="ok" to="Done"/>
    <transition name="exception" to="Error"/>

  <node name="Error">
    <event type="node-enter">
                    java.lang.System.err.println(&quot;    ERROR      &quot;);


        <action class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
                <mapping bpm="ERROR_DESC" esb="ERROR"/>
                <mapping bpm="ERROR_CODE" esb="ERROR_CODE"/>
    <transition name="to Error Save" to="ErrorSave"/>

 <service category="SampleCategory" name="SaveData">

                 <action name="interceptor1" class="edu.ggu.integration.actions.ExceptionHandlingAction">
                      <property name="exceptionMethod" value="catchesException" />
                      <property name="code" value="101" />
                      <property name="message" value="message3" />

                <action class="edu.ggu.integration.actions.SaveData" name="saveContact">
                   <property name="variables">

                 <action name="interceptor2" class="edu.ggu.integration.actions.ExceptionHandlingAction">
                      <property name="exceptionMethod" value="catchesException" />
                      <property name="code" value="102" />
                      <property name="message" value="message3" />

                <action name="soapui-client-action" class="org.jboss.soa.esb.actions.soap.SOAPClient">
                   <property name="wsdl" value="..........................." />
                   <property name="responseAsOgnlMap" value="true" />
                   <property name="SOAPAction" value="Action"/>
                   <property name="LoggingMessages" value="true" />


Each of "interceptor<N>" actions handle possible exception, add  ERROR and ERRO_CODE to the message.
PBM show me error:
[org.jbpm.graph.def.GraphElement] (JbpmJobExector: action threw exception: unable to resolve property: ERROR
if there was an error in the "Save" node. And really, when, I try to see output message (without mapping in the "ERROR" node) I cannot see my parameters in the message.
BTW.The main idea is: I need to know what happened, and get access for stacktrace inside another BPM node and another ESB service after exception.
P.S. Thanks in advance for help


To reply to this message visit the message page: http://community.jboss.org/message/525692#525692

More information about the jboss-user mailing list