Posts

Showing posts from October, 2015

Drools rules decision tables implementation

Image
Drools decision table Implementation with xls files import java.util.HashMap; import java.util.Map; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseFactory; import org.drools.builder.DecisionTableConfiguration; import org.drools.builder.DecisionTableInputType; import org.drools.builder.KnowledgeBuilder; import org.drools.builder.KnowledgeBuilderError; import org.drools.builder.KnowledgeBuilderErrors; import org.drools.builder.KnowledgeBuilderFactory; import org.drools.builder.ResourceType; import org.drools.io.ResourceFactory; import org.drools.logger.KnowledgeRuntimeLogger; import org.drools.logger.KnowledgeRuntimeLoggerFactory; import org.drools.runtime.StatefulKnowledgeSession; public class BusinessRurlesDroolsService { Map<String, KnowledgeBase> map = new HashMap<String, KnowledgeBase>(); public void init() { try { System.out.println("BusinessRurlesDroolsService -------> Init execution started-----------------------...