[rules-users] Random rule fire

vvicky72 vvicky72 at hotmail.com
Wed Apr 2 17:45:19 EDT 2014


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.


More information about the rules-users mailing list