[rules-users] Nullpointer inserting fact.

psyduck psyduck101 at gmail.com
Mon May 12 11:46:24 EDT 2008


Thx for the response. But when i use the update(no dynamic facts), the rule
keeps repeating himself for the same webservice object. I use no-loop but
that doesnt help. 

rule "..."
ruleflow-group "invoke"
no-loop true
salience 10
when
        $web : WebService ( )
then
       Invoke inv = new invoke();
       $web.setInvoke(inv);
       insert(inv);
update($web);
end 


AllenABQ wrote:
> 
> 
> Are these dynamic facts you're working with? If they aren't (and at least
> your new Invoke object is not), then try:
> 
> 
> then
>          Invoke inv = new invoke();
>        $web.setInvoke(inv);
>        insert(inv);
>          update($web);
> end
> 
-- 
View this message in context: http://www.nabble.com/Nullpointer-inserting-fact.-tp17100525p17189814.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list