Re: [rules-users] how can we find next nodes from current node in rule flow

2010-03-28 Thread KiranP

hi there,

Initially...Sorry for late reply..
i worked out the way mauricio explained...it works but still what kris says
holds
actully the usecase is somewhat like this

start-->action-->human task-->split-->n outgoing
nodes-->...-->end


suppose my work flow contain a split and i want to allow my manager(who is
non-technical) to allow add/remove of split outgoing nodes as per his
requirementso what he needs to do is add the other outgoing nodes to
split and just write the condition which depends on some process
variable(mvel,DSL)

for this i have maintained a list containing option this list get
accumalated (in action node) thus the list contain various paths that a
split could take ..the human task node selects the required path

thats all

so.can v have some othe waybcoz actually.there may b many such
splits in the flow...mauricio solution requires me to provide externally the
node name.which is a bit complicated...

thanks once again

-
Keep Working >>:working:
KiranP
-- 
View this message in context: 
http://n3.nabble.com/how-can-we-find-next-nodes-from-current-node-in-rule-flow-tp519949p682628.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] how can we find next nodes from current node in rule flow

2010-03-26 Thread Kris Verlaenen
You could access this info through the process model as Mauricio showed,
but this leads to a lot of pretty low-level code, which you might want
to avoid in your process.  Could you give an example of why you want to
do that?

Kris

Quoting KiranP :

> 
> 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-flow-tp519949p519949.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 




Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] how can we find next nodes from current node in rule flow

2010-03-25 Thread Mauricio Salatino
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 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  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-flow-tp519949p519949.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] how can we find next nodes from current node in rule flow

2010-03-25 Thread KiranP

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-flow-tp519949p519949.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users