<br> Improve your rule constraints:<br><br>
rule "..."<br>
ruleflow-group "invoke"<br>salience 10<br>
when<br>
$web : WebService ( invoke == null )<br>
then<br>
Invoke inv = new invoke();<br>
$web.setInvoke(inv);<br> update( $web );<br>
insert(inv);<br>
end<br>
<br> []s<br> Edson<br><br><br><div class="gmail_quote">2008/5/12 psyduck <<a href="mailto:psyduck101@gmail.com">psyduck101@gmail.com</a>>:<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 "..."<br>
ruleflow-group "invoke"<br>
no-loop true<br>
</div><div class="Ih2E3d">salience 10<br>
when<br>
$web : WebService ( )<br>
then<br>
Invoke inv = new invoke();<br>
$web.setInvoke(inv);<br>
insert(inv);<br>
end<br>
<br>
<br>
</div><div class="Ih2E3d">AllenABQ wrote:<br>
><br>
><br>
> Are these dynamic facts you're working with? If they aren't (and at least<br>
> your new Invoke object is not), then try:<br>
><br>
><br>
> then<br>
> Invoke inv = new invoke();<br>
> $web.setInvoke(inv);<br>
> insert(inv);<br>
> update($web);<br>
> end<br>
><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>