Is there any working difference when setFocus() method for agenda group is defined in the java code or in then field(RHS section) of the DRL rule file
I have my DRL rule file which contains more than one agenda group and they needs to be executed in certain order. Will their be any difference if the setFocus() is called upon those agenda group in the java code or in the DRL file. Drools version: 10.x Agenda group set via java code Agenda agenda = ksession.getAgenda(); agenda.getAgendaGroup( "risk" ).setFocus(); agenda.getAgendaGroup( "high" ).setFocus(); agenda.getAgendaGroup( "pre" ).setFocus(); agenda.getAgendaGroup( "automated" ).setFocus(); ksession.fireAllRules(); DRL file rule "enable" when penabled : Boolean(this == true) then kcontex
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.