This content has been marked as final.
Show 3 replies
-
1. Re: Get JBOSS ESB Variables in jBPM ActionHandler
while_true Dec 5, 2011 11:17 AM (in response to kuptservol)Hey Sergey,
Just so I can situate myself, can you please make some kind of scenario to what you want to do?
Are you calling your jBPM process directly from the console, from a Java class... You know what I mean?
Grateful for your attention.
Best regards.
-
2. Re: Get JBOSS ESB Variables in jBPM ActionHandler
kuptservol Dec 6, 2011 1:13 AM (in response to while_true)"You know what I mean", - Not very.
I'm not calling jBPM process. This is done by special JbossEsb action
"create_new_process_instance" in my jboss-esb.xml/
Just like this:
-
3. Re: Get JBOSS ESB Variables in jBPM ActionHandler
while_true Dec 6, 2011 7:08 AM (in response to kuptservol)Sergey,
Well perhaps the problem is because you're not passing any value (nor default) to your variables...
Try do something like this:
<action name="create_new_process_instance" class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor"> <property name="command" value="StartProcessInstanceCommand" /> <property name="process-definition-name" value="process"/> <property name="esbToBpmVars"> <mapping esb="eVar1" bpm="counter" value="45" /> <!-- Try this one... --> <mapping esb="body.fullname" bpm="fullname"/> <mapping esb="messageContent" bpm="bpmMessageContent"/> <mapping esb="BODY_CONTENT" bpm="theBody" /> </property> </action>
And where one can read value, one can also have default.
Try it and then let us know how it went.
Grateful for your attention.
Best regards.