[jboss-dev-forums] [Design of JBoss ESB] - Re: Problems with transmitting content from ESB to jBPM via
andreskusa
do-not-reply at jboss.com
Mon Jun 15 08:37:04 EDT 2009
Hi Bernd,
thanks, that helped!
For all who are interested, here are some details of the solution:
The esbToBpmVars are read by jBPM like this
String esbToBpmXml = toEpr.getAddr().getExtensionValue(Constants.ESB_TO_BPM_VARS_TAG);
So, this variable needs to be set into the EPR of the Call-Object of the header.
And it should contain the XML code of the mappings that I put before into the properties of the jbpmCallback-Action, i.e.:
| <property name="esbToBpmVars">
| <mapping esb="messageContent" bpm="bpmMessageContent" />
| <mapping esb="settingsESB" bpm="bpmSettingsESB" />
| </property>
|
So, the setting of this variable looks finally like that:
| String esbToBpmVars = "<property name=\"esbToBpmVars\"> ";
| esbToBpmVars = esbToBpmVars + "<mapping esb=\"messageContent\" bpm=\"bpmMessageContent\" /> ";
| esbToBpmVars = esbToBpmVars + "<mapping esb=\"settingsESB\" bpm=\"bpmSettingsESB\" /> ";
| esbToBpmVars = esbToBpmVars + "</property> ";
|
| PortReference portReference = replyTo.getAddr();
| portReference.addExtension(Constants.ESB_TO_BPM_VARS_TAG, esbToBpmVars);
| message.getHeader().getCall().setTo(replyTo);
|
Cheers,
Andre Skusa, Wincor Nixdorf, Germany
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237641#4237641
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237641
More information about the jboss-dev-forums
mailing list