Drools 6.x Decision Table Example

Creating the Project Open Eclipse New -> Maven Project (simple project) Simple Project Group Id: com.skills421.examples.drools Artifact Id: Drools6.xDecisionTableExample Finish Structure pom.xml Facts Fact.java Person.java RuleResponse.java RuleRunner RuleRunnerException.java RuleRunner.java Rules Setup.drl DrinkingRules.xls drinkingrules Main Main.java kmodule.xml kmodule.xml Output

Working with Accumulate

This example follows on from Drools5.6 Basic Example This is a quick example that shows a very simple use of the accumulate statement. Problem Write a rule that accumulates and stores the number of iPhone and Android devices owned by students, so that further rules can analyse and act on that information. The Code pom.xml…