[rules-users] modify and update is not working in the rule file

FrankVhh frank.vanhoenshoven at agserv.eu
Tue Aug 21 02:30:12 EDT 2012


"When a rule is activated where the auto-focus value is true and the rule's
agenda group does not have focus yet, then it is given focus, allowing the
rule to potentially fire." (c) Drools 5.4 Documentation


Rana wrote
> 
> Ok it worked when I changed the rule file a little to add the negative
> rules.
> 
> Focus on the Agenda should be dynamic so I have tried writing if-else
> stmts to focus on for different drugs?
> it did not work
> 
> ksession.getAgenda().getAgendaGroup( "AndroGel" ).setFocus();
> 
> Basically for every unit test even though I have set the focus, it is
> still siring all the rules of the other rule files also. How can I fix
> this.
> 
> 
> Also I have new requirement saying that when a rule satisfies, they only
> few rules to get fired based on the user input (like a grouped rules), so
> I thought I will use activation-groups apart from agenda-groups. But how
> can I focus on activating those activation-groups from Drools Rule File.
> 
> Thanks.
> 




--
View this message in context: http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp4019158p4019298.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list