[jboss-user] [JBoss jBPM] - JBPM BPEL 1.1.1 Getting variables of processInstance
evilsephiroth
do-not-reply at jboss.com
Wed Jul 1 11:30:43 EDT 2009
Hi, i've been playing with JBPM BPEL 1.1.1. and deployed some workflow.
My problem is that i can't get the name and the value of the variables that
the workflow consumes...
|
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("bpel.cfg.xml");
| JbpmContext context=jbpmConfiguration.createJbpmContext();
| ProcessInstance inst= cont.getProcessInstance(new Long(46)) //My process with 2 variables associated of type String
| Map varsMap=inst.getContextInstance().getVariables();
|
|
With the code above i can get the variables but these variables are MessageValue and i don't know a generic mode to get the String value of
the variables from this MessageValue. I've searched even in MessageValuePart but the data is in Binary..
I don't know if there's a converter or helper that can translate from messageValue saved for every process instance in variables...
Any help is appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241232#4241232
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241232
More information about the jboss-user
mailing list