Hi,<br><br>I'd like to write a rule that contains an OR condition in
the LHS, to match the presence in the working memory of an object with
particular values of a specific field. In the rest of LHS, i need to
bind other values of the specific object matched. Is there a particular
sintax to use for the binding?
<br><br>For example:<br><br>rule "orCondition"<br> when<br> myObj : (MyObject(field1 == "a") or MyObject(field1 == "b")) //correct column <br> <br> field2: myObj.getField2
() // how to correctly get <br> field3: myObj.getField3() // those values?<br> then<br> System.out.println("fields = "+ field2 + field3);<br><br>Thanks in advance, FC.