[rules-users] Adding eval on rule cause it to run in infinite loop

Chidambaran Subramanian chiddu at gmail.com
Wed Jun 11 04:52:09 EDT 2014


Add

  no-loop true

on the line after the "rule" directive.



rule "1"
no-loop true


Regards
Chiddu




On Wed, Jun 11, 2014 at 2:05 PM, brachi <brachi.w at sapiens.com> wrote:

> for this Drools Fact Type:
>
> /*
> declare DvFacts0
> @propertyReactive
>         IsNUMERIC: Double
>         condIsNUMERIC: Double
> end*/
>
> I have this rule:
>
> /*rule "1"
>


> salience -1
>     agenda-group "agenda1"
>     when
>                 $condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) )
>                 $conclusion: DvFacts0( )
>     then
>                 modify($conclusion){setIsNUMERIC(1.0)};
>     end*/
>
> the rule hit just one time without the eval clause, adding the eval cause
> this rule to run in infinite loop.
> have an idea?
> put attention that I add  @propertyReactive on the DVFacts0 to avoid this.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140611/a2be7155/attachment.html 


More information about the rules-users mailing list