<br>&nbsp;&nbsp; Improve your rule constraints:<br><br>
rule &quot;...&quot;<br>
ruleflow-group &quot;invoke&quot;<br>salience 10<br>
when<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$web : WebService ( invoke == null )<br>
then<br>
 &nbsp; &nbsp; &nbsp; Invoke inv = new invoke();<br>
 &nbsp; &nbsp; &nbsp; $web.setInvoke(inv);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; update( $web );<br>
 &nbsp; &nbsp; &nbsp; insert(inv);<br>
end<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><div class="gmail_quote">2008/5/12 psyduck &lt;<a href="mailto:psyduck101@gmail.com">psyduck101@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
Thx for the response. But when i use the update(no dynamic facts), the rule<br>
keeps repeating himself for the same webservice object. I use no-loop but<br>
that doesnt help.<br>
<br>
rule &quot;...&quot;<br>
ruleflow-group &quot;invoke&quot;<br>
no-loop true<br>
</div><div class="Ih2E3d">salience 10<br>
when<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$web : WebService ( )<br>
then<br>
 &nbsp; &nbsp; &nbsp; Invoke inv = new invoke();<br>
 &nbsp; &nbsp; &nbsp; $web.setInvoke(inv);<br>
 &nbsp; &nbsp; &nbsp; insert(inv);<br>
end<br>
<br>
<br>
</div><div class="Ih2E3d">AllenABQ wrote:<br>
&gt;<br>
&gt;<br>
&gt; Are these dynamic facts you&#39;re working with? If they aren&#39;t (and at least<br>
&gt; your new Invoke object is not), then try:<br>
&gt;<br>
&gt;<br>
&gt; then<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Invoke inv = new invoke();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;$web.setInvoke(inv);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;insert(inv);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;update($web);<br>
&gt; end<br>
&gt;<br>
--<br>
</div>View this message in context: <a href="http://www.nabble.com/Nullpointer-inserting-fact.-tp17100525p17189814.html" target="_blank">http://www.nabble.com/Nullpointer-inserting-fact.-tp17100525p17189814.html</a><br>
<div><div></div><div class="Wj3C7c">Sent from the drools - user mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>