[rules-users] Random rule fire

Wolfgang Laun wolfgang.laun at gmail.com
Thu Apr 3 03:04:11 EDT 2014


You can insert a fact containing the random number and add a pattern with
the constraint. Where is the problem?


On 2 April 2014 23:45, vvicky72 <vvicky72 at hotmail.com> wrote:

> We have a unique situation. Using guided decision tables, we want a
> particular rule to fire randomly even when all the conditions on the "when"
> clause are satisfied.
>
> So...
> We want to assign a positive integer to every rule (say n). We want that
> rule to fire only when
> "new Random().nextInt(n)+1 = n" is true (along with other conditions in the
> rule)
>
> Any suggestions?
>
> Thanks,
> Vikas.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Random-rule-fire-tp4029103.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/20140403/d7b57322/attachment.html 


More information about the rules-users mailing list