[jboss-user] [jBPM] - Re: How to get a list of process variable (name and value) from the processInstance object?
Maciej Swiderski
do-not-reply at jboss.com
Thu Aug 16 07:37:15 EDT 2012
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: How to get a list of process variable (name and value) from the processInstance object?"
To view the discussion, visit: https://community.jboss.org/message/753997#753997
--------------------------------------------------------------
Try with following code:
VariableScopeInstance variableScope = (VariableScopeInstance) processInstance.getContextInstance(VariableScope.VARIABLE_SCOPE);
Map<String, Object> variables = variableScope.getVariables();
just make sure that process instance is of type org.jbpm.process.instance.ProcessInstance
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/753997#753997]
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/20120816/33fbf1fd/attachment.html
More information about the jboss-user
mailing list