[rules-users] Problems with looping

Vanina Beraudo vaninaberaudo at gmail.com
Fri Aug 1 10:37:55 EDT 2008


Hi,

you must use "no-loop true" and the rule will be executed one for one
InputObject.




2008/8/1 thomas kukofka <thomaskukofka at web.de>:
> Hello,
>
> I have and less loop (the rule should only executed one for one InputObject)
> in the follwing rule although I use "no-loop":
>
> rule "rulename"
>   dialect "java"
>   no-loop
>     when
>         io: InputObject (type == InputObject.Type.Typename)
>     then
>         io.setStringPropertyValue(InputObject.PROPERTYVALUE, "somestring");
>         update(oo);
>
> end
>
> I've read that I have to overwrite hashcode and equals, can this be the
> reason? If yes, do you have an example how to overwrite these methods?
>
> Thomas
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>



-- 
Lic. Vanina Beraudo



More information about the rules-users mailing list