[rules-users] Are if/then rules possible?
Yu Chai
cross.cy.work at gmail.com
Mon Aug 22 19:21:12 EDT 2011
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 <wires8 at yahoo.com>
> 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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110823/f997bb16/attachment.html
More information about the rules-users
mailing list