Thanks Pavel. I was hoping for more of a transparent functionality supported by Drools than have my users add those control method calls. I am trying to make their rules as "control logic" blind as possible. But, I guess they would have to do that.
Also, any idea on re-using an object from the parent rule? What is the syntax for using an object declared in the parent rule? Thanks.
Aha, misunderstanding. Yes you can't use activation group if you want
execute more children rules. However you can use fact (Status) to
avoid evaluating parent rule. My suggestion:
Rule DEFAULT
salience -100
if A and ! Status(done) then DEFAULT end
Rule A
if A and B then SOMETHINGB; update(Status(done)) end
Rule B
if A or B then SOMETHINGB; update(Status(done)) end
Rule C
if A or C then SOMETHINGC; update(Status(done)) end
At beginning insert Status with e.g. "ready". It's possible to use
instead of update also insert but because you can fire more children
rules it will be waste of memory.
Hope this help
Pavel
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users