[jboss-dev-forums] [jBPM Development] - Re: How can i get the human task id defined in bpmn files?

Shobhit Tyagi do-not-reply at jboss.com
Thu May 16 11:12:01 EDT 2013


Shobhit Tyagi [https://community.jboss.org/people/roxy1987] created the discussion

"Re: How can i get the human task id defined in bpmn files?"

To view the discussion, visit: https://community.jboss.org/message/818020#818020

--------------------------------------------------------------
I believe you have the process instance ID. So you can find the process definition id using the instance id first.
Using the process def id, you will need to find the Process object to get the node related information. 
Here is what you can do,

String strProcessDefId = JPAProcessInstanceDbLog.findProcessInstance(intProcessInstId).getProcessId(); // Get process def id.
   
readKnowledgeBase(); // Get the knowledge base by feeding it the process name.
 Process objProcess = objKBase.getProcess(strProcessDefId); // Process object.
   List<NodeInstanceLog> arlNodeInstanceLogList;
   for (Node objNode : ((WorkflowProcessImpl) objProcess).getNodes())
   {
     Map<String, Object> hshMetaData = objNode.getMetaData();
     System.out.println(hshMetaData.get("UniqueId"));
    }


Regards.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818020#818020]

Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130516/0b58a9c3/attachment.html 


More information about the jboss-dev-forums mailing list