<br> This is odd, since this part of the code didn't changed much from drools 4 to 5 (assuming you are using java dialect for your consequence). Can you open a JIRA with your test case plz?<br><br> []s<br> Edson<br>
<br><div class="gmail_quote">2009/3/23 Jared Davis <span dir="ltr"><<a href="mailto:sunray@davisprogramming.com">sunray@davisprogramming.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
This rule (not the best style) compiles fine in 4.07. It gives this error<br>
message using 5.0 Snapshot. I changed some of the text to be generic so I could<br>
post the code.<br>
<br>
Rule Compilation error : [Rule name='A.B.inlet.mxb.first.link.20090216.01']<br>
com/zzzzzz/yyy/awl/Rule_A_B_inlet_mxb_first_link_20090216_01_0.java<br>
(11:5517) : The method insert(RuleLink) is undefined for the type<br>
Rule_A_B_inlet_mxb_first_link_20090216_01_0<br>
<br>
<br>
Here is the rule: (I had to change all the > to . to get gmane to accept the<br>
email as a non top post)<br>
<br>
rule "A.B.inlet.mxb.first.link.20090216.01"<br>
agenda-group "A.B"<br>
when<br>
<br>
. comp : XComponentRule( path == "~unit~mxb")<br>
then<br>
. Point3d l = new Point3d();<br>
. comp.getBounds().getLower(l);<br>
<br>
. if (l.x < 1) {<br>
. insert( new RuleLink("FIRST.INLET" , comp, comp) );<br>
. } else {<br>
. insert( new RuleLink("FIRST.INLET.NOT" , comp, comp) );<br>
. }<br>
.<br>
end<br>
<br>
If I change the rule to<br>
<br>
rule "A.B.inlet.mxb.first.link.20090216.01"<br>
agenda-group "A.B"<br>
when<br>
<br>
. comp : XComponentRule( path == "~unit~mxb")<br>
then<br>
. Point3d l = new Point3d();<br>
. comp.getBounds().getLower(l);<br>
. String name = "FIRST.INLET";<br>
. if (l.x < 1) {<br>
. // nothing<br>
. } else {<br>
. name = "FIRST.INLET.NOT";<br>
. }<br>
. insert( new RuleLink(name , comp, comp) );<br>
.<br>
end<br>
<br>
it compiles w/o a problem.<br>
<br>
<br>
<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, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>