<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Jboss ESB JBPM - No EPR present in process instance
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/keljboss">keljboss</a> in <i>JBoss ESB Development</i> - <a href="http://community.jboss.org/message/586500#586500">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am a new in jboss ESB, I am triyng to make JBPM and JBOSS ESB exchange().</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>my example is that jbpm calls ESB and get the response, when i test the esb using soapUI the process work fine, but using JBPM i have the exception below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.jboss.soa.esb.ConfigurationException: <strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">No EPR present in process instance</strong></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler.execute(EsbActionHandler.java:137)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>my jboss-esb.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;?xml version="1.0"?&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"><span style="font-size: 12px;">&lt;jbossesb parameterReloadSecs="5"xmlns="</span><a class="jive-link-external-small" href="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd</a><span style="font-size: 12px;">"xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span style="font-size: 12px;">" xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsdhttp://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsdhttp://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd</a><span style="font-size: 12px;">"&gt;</span></span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;providers&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-provider name="ibaSommeHttpGateway" protocol="http"&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-bus busid="ibaSommeHttpGateway" port="9999"/&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/jbr-provider&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-provider name="ibaMultiplicationHttpGateway" protocol="http"&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-bus busid="ibaMultiplicationHttpGateway" port="7777"/&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/jbr-provider&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/providers&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;services&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;service category="Calcule"&#160;&#160; description="calcule la somme de deux valeurs" invmScope="GLOBAL" name="somme"&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;listeners&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-listener busidref="ibaSommeHttpGateway" is-gateway="true" name="ibaHttpSommeGatewayListener"/&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/listeners&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;actions mep="RequestResponse"&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action class="org.jboss.soa.esb.actions.routing.http.HttpRouter" name="ibaSommeHttpRouter"&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="method" value="POST"/&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"><span style="font-size: 12px;">&lt;property name="endpointUrl" value="</span><a class="jive-link-external-small" href="http://localhost:8080/somme/SommeService?wsdl" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://localhost:8080/somme/SommeService?wsdl</a><span style="font-size: 12px;">"/&gt;</span></span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"><span style="font-size: 12px;">&lt;property name="endpointAdresse" value="</span><a class="jive-link-external-small" href="http://localhost:8080/somme/SommeService?wsdl" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://localhost:8080/somme/SommeService?wsdl</a><span style="font-size: 12px;">"/&gt;</span></span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="reply-to-originator" value="true"/&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action class="org.jboss.soa.esb.actions.SystemPrintln" name="message"&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="message" value="in the somme yoooou pi ESB"/&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/actions&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/service&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;service category="Calcule"&#160;&#160; description="calcule la multiplication de deux valeurs"&#160;&#160; invmScope="GLOBAL" name="multiplication"&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;listeners&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;jbr-listener busidref="ibaMultiplicationHttpGateway"&#160;&#160;&#160;&#160; is-gateway="true" name="ibaHttpMultiGatewayListener"/&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/listeners&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;actions mep="RequestResponse"&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action class="org.jboss.soa.esb.actions.routing.http.HttpRouter" name="ibaMultiplicationHttpRouter"&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="method" value="POST"/&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"><span style="font-size: 12px;">&lt;property name="endpointUrl" value="</span><a class="jive-link-external-small" href="http://localhost:8080/multiplication/MultiplicationService?wsdl" style="font-size: 12px; outline-style: none; color: #355491;" target="_blank">http://localhost:8080/multiplication/MultiplicationService?wsdl</a><span style="font-size: 12px;">"/&gt;</span></span>&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="reply-to-originator" value="true"/&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action class="org.jboss.soa.esb.actions.SystemPrintln" name="message"&gt;</span>&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;property name="message" value="in the multiplication ESB"/&gt;</span>&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/actions&gt;</span>&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/service&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/services&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/jbossesb&gt;</span></code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and the precessdefinition.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;process-definition xmlns="urn:jbpm.org:jpdl-3.2"&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="calcule"&gt;</span> </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;start-state name="start"&gt;</span>&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;transition to="somme" name="callSomme"&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action name="action"&gt;</span>&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;message&gt;</span>Going to the SOe<span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/message&gt;</span> </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/transition&gt;</span>&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/start-state&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;node name="somme"&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;">&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;action&#160;&#160;&#160; class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler"&gt;</span>&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;"></code>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;replyToOriginator&gt;</span>true<span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/replyToOriginator&gt;</span></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-xml" style="font-family: monospace;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"> </span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;esbServiceName&gt;</span></code>somme<span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/esbServiceName&gt;</span></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"> </span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;esbCategoryName&gt;</span>Calcule<span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/esbCategoryName&gt;</span></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"> </span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;replyToOriginator&gt;</span>reply<span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/replyToOriginator&gt;</span></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;"> </span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;bpmToEsbVars&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;mapping bpm="a" esb="a"&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/mapping&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;mapping bpm="b" esb="b"&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/mapping&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/bpmToEsbVars&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;esbToBpmVars&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;mapping bpm="somme" esb="somme"&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/mapping&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/esbToBpmVars&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/action&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;transition to="fin" name="tofin"&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/transition&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/node&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;end-state name="fin"&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/end-state&gt;</span><span class="jive-xml-tag" style="font-size: 12px; color: navy; font-weight: bold;">&lt;/process-definition&gt;</span></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>the java code :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160;&#160;&#160;&#160; JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160; JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160; GraphSession graphSession = jbpmContext.getGraphSession();&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160; ProcessDefinition processDefinition =&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; graphSession.findLatestProcessDefinition(<span style="color: red;">"calcule"</span>);&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java">&#160;&#160;&#160; String a = request.getParameter(<span style="color: red;">"a"</span>);&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> String b = request.getParameter(<span style="color: red;">"b"</span>);&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> ProcessInstance processInstance = <span style="color: navy;"><strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">new</strong></span> ProcessInstance(processDefinition);&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> Token token = processInstance.getRootToken(); </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> System.out.println(token.getNode().getName());&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> ContextInstance contextInstance = processInstance.getContextInstance(); </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> contextInstance.setVariable(<span style="color: red;">"a"</span>, <span style="color: navy;"><strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">new</strong></span> Float(500));&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> contextInstance.setVariable(<span style="color: red;">"b"</span>, <span style="color: navy;"><strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">new</strong></span> Float(500));&#160;&#160;&#160;&#160; </code></pre><pre class="jive-pre" style="background-color: #ffffff; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; display: block; overflow-x: auto; overflow-y: auto; width: auto; white-space: pre; border-top-color: #eeeeee; border-right-color: #eeeeee; border-bottom-color: #eeeeee; border-left-color: #cccccc; background-position: repeat repeat; border-style: solid; padding: 10px;"><code class="jive-code jive-java"> processInstance.getRootToken().signal(); </code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>is there anything that i messed ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>for information i am using jboss-esb4.9,&#160; jbpm 3.2&#160; and jbossAS 5.1.0GA</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>thank you for your help</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Cheers</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/586500#586500">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>