[jboss-dev-forums] [jBPM Development] - Re: Is it possible to get a node's parent id in BPMN2?
Umar Ashfaq
do-not-reply at jboss.com
Wed Dec 28 03:19:57 EST 2011
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&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111228/125f0ac6/attachment.html
More information about the jboss-dev-forums
mailing list