Second thoughts: it might be easier to add code to the right hand side to achieve this random firing.


On 3 April 2014 09:04, Wolfgang Laun <wolfgang.laun@gmail.com> wrote:
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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users