I was working on a similar scenario. My solution is when rule A fired,
insert a fact AF. Rule B's LHS detects if there's an instance of AF and it's
only fired if so. And I don't think you can do "else" in a rule now. So you
may consider split rule A into two rules to fire either B or C.

Regards

Yu

2011/8/23 Matthew Erler <[email protected]>

> In Drools 5 is it possible for a rule to call one of two specific rules
> depending on whether the condition in the first rule evaluates to true or
> false?  For example lets say that there are three rules: A, B, and C.  A is
> evaluated and if its condition is True then execute rule B, otherwise
> execute rule C.  B and C must not be executed on their own , but only by A.
> I haven't been able to find and examples or tutorials on this so if it's
> possible an example would be greatly appreciated.  Thank you.
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to