On Fri  2.May'08 at 10:05:20 +0100, Anstis, Michael (M.) wrote:
The "when" section matches fact (object) patterns, so your requirement
could be written as:-

when there is a Test Fact 'A' and another Test Fact 'B' where "the 'x'
property of 'A'" equals "the 'y' property of fact 'B' plus 1" then.....

This would become:-

rule "Rule 1"
when
   Test( $y : y )
   Test( x == ($y + 1) )

Could you combine these conditions? As in:

when
        Test($y : y, x == $y + 1)
//...
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to