[jboss-dev-forums] [jBPM Development] - Re: How can i get the human task id defined in bpmn files?
jay zhang
do-not-reply at jboss.com
Thu May 16 20:26:45 EDT 2013
jay zhang [https://community.jboss.org/people/jayzhang] 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/818079#818079
--------------------------------------------------------------
Thank you!
I solve the problem in this way:
//get session
StatefulKnowledgeSession sess = this.jbpm5helper.buildJbpmSession(0);
//get processInstance by processInstanceId
RuleFlowProcessInstance processInstance=(RuleFlowProcessInstance)sess.getProcessInstance(processInstanceId);
//get the id of node To be executed
List<NodeInstance> nodeList=(List<NodeInstance>)processInstance.getNodeInstances();
int currentNodeId=(int)nodeList.get(0).getNodeId();
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818079#818079]
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/074688bb/attachment.html
More information about the jboss-dev-forums
mailing list