[jboss-user] [jBPM] - Re: How to get a list of process variable (name and value) from the processInstance object?
byungwoojun
do-not-reply at jboss.com
Mon Aug 27 10:58:00 EDT 2012
byungwoojun [https://community.jboss.org/people/byungwoojun] 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/756220#756220
--------------------------------------------------------------
I figured it out myself:
===
org.jbpm.workflow.instance.node.WorkItemNodeInstance wn = (org.jbpm.workflow.instance.node.WorkItemNodeInstance)event.getNodeInstance();
**if** (wn.getWorkItem() != *null) {
# for (String key : wiParamList.keySet()) { System.out.println("param key: " + key.toString()); System.out.println("param value: " + wiParamList.get(key)); } } Map<String,Object> wiResultList = wn.getWorkItem().getResults(); if (wiResultList != null ) { for (String key : wiResultList.keySet()) { System.out.println("result key: " + key.toString()); System.out.println("result value: " + wiResultList.get(key)); } }}
*
Map<String,Object> wiParamList = wn.getWorkItem().getParameters();
**if** (wiParamList != *null ) {*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/756220#756220]
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/20120827/83cba968/attachment-0001.html
More information about the jboss-user
mailing list