Category Archives: jbpm drools

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

Drools :: globals-and-functions Example

Environment Drools 7.5.0.Final Project globals-and-functions – Structure App.java public class App { public static final void main(String[] args) { try { KieServices ks = KieServices.Factory.get(); KieContainer kContainer = ks.getKieClasspathContainer(); KieSession kSession = kContainer.newKieSession(“ksession-rules”); Topic topic = new Topic(“Drools”); kSession.insert(topic); kSession.insert(new … Continue reading

Posted in drools functions, drools globals, jbpm drools | Tagged , , | Leave a comment

Drools :: drools-first-project Example

Environment Drools 7.5.0.Final Project drools-first-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(); // when … Continue reading

Posted in jbpm drools | Tagged | Leave a comment