With the following code snippet you can see how you can get the first next
node. You only need to iterate and create a recursive method to find out the
full path:
RuleFlowProcessInstance processInstance = (RuleFlowProcessInstance)
ksession.startProcess("org.plugtree.XXX");
NodeInstance node =
processInstance.getNodeInstances().iterator().next();
long id = node.getNodeId();
NodeImpl nodeDef =
(NodeImpl)((RuleFlowProcess)processInstance.getProcess()).getNode(id);
List<Connection> connections =
nodeDef.getOutgoingConnections().get(0);
Connection connection = connections.get(0);
Node firstNodeAfterTheCurrentNodeInstance = connection.getTo();
Greetings.
On Thu, Mar 25, 2010 at 8:47 AM, KiranP <phadatarekiran(a)gmail.com> wrote:
suppose i have a rule flow which has a split node and before that split
there
is action node as below
start --> action1 --> Split --> ********** -->END
now if i want to find all transitions after split that can happen then is
tere some api available
if not please provide some workaround.........waiting eagerly for
response.....
thanks
-----
Keep Working >>:working:
KiranP
--
View this message in context:
http://n3.nabble.com/how-can-we-find-next-nodes-from-current-node-in-rule...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
-
http://salaboy.wordpress.com
-
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -