[rules-users] Agenda-group in fact insert time

Sonata plz.write.to at gmail.com
Sat May 11 07:36:01 EDT 2013


Thank you Wolfgang for your detailed reply.

>
> If you put the rules of a group into one (or more) drl files, you can 
> compile them into separate .pkg files, which can then be used, 
> individually or combined, into a KB. 

So maintaining rules in separate compiled resources is more preferable than
using a single kbase to spawn separate sessions.

>
> Yet another idea might be to use an explicit Focus fact with an 
> attribute that controls whether a rule should be evaluated or not. 
> Using extends makes this 
> just as terse as using the attribute, and changing the Focus is done 
> by a simple modify. 
>
> rule StatusOne 
> when 
>   Focus( value == "one" ) 
> then 
> end 
>
> rule "xyz in group one" extends StatusOne 
> when 
>    ... the conditions for xyz in group one... 
> then ... end 
>
> Given that this can be easily extended to have rules that are in more 
> than one group, this is even superior to agenda group. 

I really want to try this idea. Looks promising. When can we have this
"extends" feature?



--
View this message in context: http://drools.46999.n3.nabble.com/Agenda-group-in-fact-insert-time-tp4023749p4023777.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list