Re: [drools-user] Newbie: Is there a way to dynamically change the salience of a rule ?

2006-02-07 Thread Michael Neale
Not really from within a drl file, no.

The rule object has a salience property, so it can be set programmatically,
but its not part of the rule language.

On 2/8/06, sol myr <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>   Newbie question: is there a way to dynamically change the salience of a
> rule (namely, rule might be loaded from a standard "drl" file with some
> initial salience, but on some conditions I'd like to change it during
> runtime) ?
>
>   BTW I'm perfectly aware it's probably not brilliant design, not to
> mention maintenance...
>   I'm just curious  :)
>
>   Thanks very much
>
>
>
> -
> Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
>


[drools-user] Newbie: Is there a way to dynamically change the salience of a rule ?

2006-02-07 Thread sol myr
Hi,
   
  Newbie question: is there a way to dynamically change the salience of a rule 
(namely, rule might be loaded from a standard "drl" file with some initial 
salience, but on some conditions I'd like to change it during runtime) ?
   
  BTW I'm perfectly aware it's probably not brilliant design, not to mention 
maintenance... 
  I'm just curious  :)
   
  Thanks very much
   


-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!