[jboss-dev-forums] [Design of JBoss ESB] - Re: StartProcessInstanceCommand: Return token id/process ins
burrsutter
do-not-reply at jboss.com
Fri Dec 19 16:32:34 EST 2008
Cleaning up the callback EPR....
The current callback into an awaiting BPM process is via this chunk of XML injected into the reply-to:
<wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsa:Address>logical:JBossESB-Internal#JBpmCallbackService</wsa:Address><wsa:ReferenceProperties><jbossesb:esbToBpmVars xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb"><esbToBpmVars><mapping esb="BODY_CONTENT" bpm="theBody"/></esbToBpmVars></jbossesb:esbToBpmVars><jbossesb:jbpmTokenId xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">406</jbossesb:jbpmTokenId><jbossesb:jbpmNodeId xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">30</jbossesb:jbpmNodeId><jbossesb:jbpmProcessInstId xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">166</jbossesb:jbpmProcessInstId><jbossesb:jbpmProcessNodeVersionCounter30_406 xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">0</jbossesb:jbpmProcessNodeVersionCounter30_406><jbossesb:type xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">urn:jboss/esb/epr/type/logical</jbossesb:type></wsa:ReferenceProperties></wsa:From>
It is injected via a custom action like so:
message.getHeader().getCall().setTo(epr);
where epr equals the content listed above.
This is essentially our "cookie" for managing the conversation between ESB & the process instance. This chunk of XML is a bit unwieldy, especially if must go out to a business partner or actual client application. It also requires a custom action to be created.
An easier to use correlation solution should be created so that it works more like the older model of signal (out of the box action) & token id (a simpler "cookie").
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197744#4197744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197744
More information about the jboss-dev-forums
mailing list