[rules-users] activation-group issue

Yaniv Itzhaki iyaniv at gmail.com
Thu Dec 16 10:44:57 EST 2010


any ideas anyone?

On Thu, Dec 16, 2010 at 12:36 PM, Yaniv Itzhaki <iyaniv at gmail.com> wrote:

> Hi,
>
> I have a group of rules with salience which I would like that only the
> first activated rule will fire.
>
> I cant use the activation-group attribute because each rule can fire number
> of times, and i want only this rule to be fired in that group:
>
> rule "A1"
> salience 100
> ruleflow-group "A"
>  activation-group "A"
> when
>         xxx1
> then
>        yyy1
> end
>
> rule "A2"
> salience 90
> ruleflow-group "A"
>  activation-group "A"
> when
>         xxx2
> then
>        yyy2
> end
>
> If Rule A1 run (activated number of times), rule A2 should not run.
>
> Is there a way to do that? (no global flags etc.)
>
> Thanks
> Yaniv
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101216/c5cae03a/attachment.html 


More information about the rules-users mailing list