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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to