[jboss-user] [jBPM] - How to get Process Instance Variables from Ksession.getProcessInstance(..) ?
Thomas Setiabudi
do-not-reply at jboss.com
Thu Jul 11 00:45:24 EDT 2013
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"How to get Process Instance Variables from Ksession.getProcessInstance(..) ?"
To view the discussion, visit: https://community.jboss.org/message/827443#827443
--------------------------------------------------------------
Hi,
How do we get variables of a Process Instance if we get the process instance from kssession?
In this discussion
https://community.jboss.org/message/753997#753997 https://community.jboss.org/message/753997
it says to get the variable instance this way
VariableScopeInstance variableScope = (VariableScopeInstance) processInstance.getContextInstance(VariableScope.VARIABLE_SCOPE);
Map<String, Object> variables = variableScope.getVariables();
where processInstance is org.jbpm.process.instance.ProcessInstance
While this is what I do:
org.jbpm.process.instance.ProcessInstance processInstance = (org.jbpm.process.instance.ProcessInstance) ksession.getProcessInstance(processInstanceId);
ksession.getProcessInstance(..) returns org.drools.runtime.process.ProcessInstance
can I just convert it that way?
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/827443#827443]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130711/fac2e170/attachment.html
More information about the jboss-user
mailing list