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&...]