Monthly Archives: April 2018

Drools :: activation-group Example

Environment Drools 7.7.0.Final Project structure App.java public class App { public static void main( String[] args ) { // Start a Rule Engine Session KieServices ks = KieServices.Factory.get(); KieContainer kContainer = ks.getKieClasspathContainer(); KieSession kSession = kContainer.newKieSession(); Product product = new … Continue reading

Posted in drools rule attributes | Leave a comment

Drools :: agenda-group Example

Environment Drools 7.7.0.Final Project structure App.java public class App { public static void main( String[] args ) { // Start a Rule Engine Session KieServices ks = KieServices.Factory.get(); KieContainer kContainer = ks.getKieClasspathContainer(); KieSession kSession = kContainer.newKieSession(); kSession.getAgenda().getAgendaGroup(“primary”).setFocus(); kSession.getAgenda().getAgendaGroup(“secondary”).setFocus(); kSession.fireAllRules(); } … Continue reading

Posted in drools rule attributes | Leave a comment

Integration :: Drools :: drools-business-rule-task Example

Environment Drools 7.7.0.Final jBPM 7.7.0.Final Process Process parameters Process attributes Script Task attributes Business Rule Task attributes or source (business-rule-process.bpmn): _jbpm-unique-5-_jbpm-unique-6 _jbpm-unique-6-_3 See the above ruleFlowGroup=”Group1″ and in Sample.drl   Project structure   Demo.java public class Demo { public static … Continue reading

Posted in jbpm drools | Leave a comment