<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 "or" 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"><<a href="mailto:mruno@zappos.com">mruno@zappos.com</a>></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'm having the strangest issue. First off, here's my DRL logic..<br>
<br>
rule 'Sample Rule One'<br>
auto-focus true<br>
dialect 'mvel'<br>
salience 900<br>
agenda-group 'Test Rules'<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're here, it'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 "order" - not "address". 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>