[rules-users] Pattern matching
Mark Proctor
mproctor at codehaus.org
Wed Feb 6 19:30:33 EST 2008
One is a field constraint disjointed connected the other is a
Conditional Element 'or'. Details of both are covered in the manual.
Suffice to say the first is like writting if ( stmt1.attrib1 == "X" ||
smt1.attrib1 == "Y" ) whil the ohte results in two separate rules, one
checking "X" and the other checking "Y", both rules can match and fire.
Mark
Jai Vasanth wrote:
> Hi,
>
> What is the difference between the following 2 statements
>
>
> stmt1 : FactA( attrib1 == "X" || attrib1 =="Y")
>
>
> stmt2: FactA( attrib1 =="X") or FactA(attrib1 =="Y")
>
>
>
> Thanks
>
> Jai
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20080207/803e046d/attachment.html
More information about the rules-users
mailing list