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 <[email protected]> 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 > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
