<br>   Sounds like a bug in the pattern offset calculation... :/ <br><br>   Can you open a JIRA for that with your test case plz? <br><br>   Meanwhile, you can try a work around by removing that &quot;or&quot; between evals and inlining them... not sure it will work, but I guess it is worth a try...<br>
<br>   order : WrappedOrder( eval(hasPromotionX(order.getPromotions())) );   <br>   address : Address( eval(matchAddress(address.getAddress1()) || 
matchAddress(address.getAddress2())) ) from order.getShippingAddress();   <br>   <br>
   Edson<br><br><div class="gmail_quote">2010/3/26 Matthew Runo <span dir="ltr">&lt;<a href="mailto:mruno@zappos.com">mruno@zappos.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello folks -<br>
<br>
I&#39;m having the strangest issue. First off, here&#39;s my DRL logic..<br>
<br>
rule &#39;Sample Rule One&#39;<br>
auto-focus true<br>
dialect &#39;mvel&#39;<br>
salience 900<br>
agenda-group &#39;Test Rules&#39;<br>
when<br>
    order : WrappedOrder();<br>
    eval(hasPromotionX(order.getPromotions()));<br>
    address : Address() from order.getShippingAddress();<br>
    eval(matchAddress(address.getAddress1())) OR<br>
    eval(matchAddress(address.getAddress2()));<br>
then<br>
    # If we&#39;re here, it&#39;s got the promotion and address match...<br>
    do.something....<br>
    drools.halt();<br>
end<br>
<br>
The problem is that drools is looking for getAddress1() and getAddress2() on &quot;order&quot; - not &quot;address&quot;. And, of course, that fails - a WrappedOrder does not have those methods - an Address() does!<br>
<br>
Any ideas?<br>
<br>
Thanks for your time!<br>
<br>
Matthew Runo<br>
Software Engineer, Zappos.com<br>
<a href="mailto:mruno@zappos.com">mruno@zappos.com</a> - 702-943-7833<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>