On 31 March 2011 07:58, Benson Fung <benson.red...@gmail.com> wrote:

> Hi,
>
> If there are 10 rules in the drools rulebase, and right now I would
> like to execute one of the particular rule.  Is there any approach/way
> to execute particular rule programmatically?


No. The right hand side of a rule (code between "then" and "end") is
executed whenever there is a set of fact objects in Working Memory
satisfying the condition. If you insert such a set of facts and call
fireAllRules(), then it will happen.



>  I don't think
> agenda-group or activation-group can do that, right?  Or is it
> possible to create an agenda programmatically ?
>

No to both.
-W


>
> Thanks
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to