I'm trying to have a rule execute based on the following condition:

        ObligationComplianceEvent(term == "term 1", obligation ==
"obligation 1", level == 1)
        ObligationComplianceEvent(term == "term 2", obligation ==
"obligation 1", level == 1)

I pass in two facts of type ObligationComplianceEvent with the values shown
above but the rule does not execute. It only executes if I put an 'or' like
so

        ObligationComplianceEvent(term == "term 1", obligation ==
"obligation 1", level == 1) or
        ObligationComplianceEvent(term == "term 2", obligation ==
"obligation 1", level == 1)

Any help on what the correct way to do this is? I'm guessing its because it
does not distinguish the two lines as two different facts, so because
neither of the facts has the value 'term 1' and 'term 2' it never executes.

Thanks for any help.

Justin
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to