Umar Ashfaq [
http://community.jboss.org/people/umarm] created the discussion
"Re: Is it possible to get a node's parent id in BPMN2?"
To view the discussion, visit:
http://community.jboss.org/message/643487#643487
--------------------------------------------------------------
Alright, I got the solution by hit and trial:
Node currentNode = kcontext.getNodeInstance().getNode();
List<Connection> inConns =
currentNode.getIncomingConnections("DROOLS_DEFAULT");
Node parentNode = inConns.get(0).getFrom();
System.out.println("Current node id: "+currentNode.getId());
System.out.println("Parent node id: "+parentNode.getId());
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/643487#643487]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]