----- Original Message -----From: mmquelo massiTo: Rules Users ListSent: Thursday, November 22, 2007 5:15 PMSubject: [rules-users] How to make a "Loop-Ruleflow"????Hi everybody.I am trying to make a ruleflow that, once processed, causes the rule engine to infinitely loop.I have got a User Object in my object model. It has got a getLogin() and setLogin() methods.The login field stands for the "User name", so it is a String.First I insert an Object in the WM, with login==A.Then I generate the following rule-flow-groups:rule "rule_ab"ruleflow-group "ab"whenu:User( login == "A" )thenu.setLogin("B");System.out.println("a - > b");update(u);endrule "rule_ba"ruleflow-group "ba"whenu:User( login == "B" )thenu.setLogin("A");System.out.println("b - > a");update(u);endI'd like to define a ruleflow that gives me in output something like this:a - > bb - > aa - > bb - > aa - > bb - > aa - > bb - > aa - > bb - > aa - > bb - > a.... looping...How can I do it?In other words I want those rules to be executed in parallel and I want to definethis "parallelism" using the ruleflow graph, Is It Possible???Thank You Again!Massi.P.S.Ah.... I solved that matter with the rule.package...
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users