public KnowledgeBase newKnowledgeBase() { KieBaseConfiguration conf = new org.drools.core.impl.KnowledgeBaseFactoryServiceImpl().newKnowledgeBaseConfiguration(); conf.setProperty(ConsequenceExceptionHandlerOption.PROPERTY_NAME, DefaultConsequenceExceptionHandler.class.getCanonicalName()); return new KnowledgeBaseAdapter(delegate.newKnowledgeBase(conf)); }
public Environment newEnvironment() { return new EnvironmentAdapter(delegate.newEnvironment()); } }
public KnowledgeSessionConfiguration newKnowledgeSessionConfiguration() { return new KnowledgeSessionConfigurationAdapter(delegate.newKnowledgeSessionConfiguration()); }
private KieBaseConfiguration newConfiguration() { KieBaseConfiguration conf = delegate.newKnowledgeBaseConfiguration(); conf.setProperty(ConsequenceExceptionHandlerOption.PROPERTY_NAME, DefaultConsequenceExceptionHandler.class.getCanonicalName()); return conf; }
public KnowledgeBase newKnowledgeBase(String kbaseId, KnowledgeBaseConfiguration conf) { KieBaseConfiguration kieBaseConf = ((KnowledgeBaseConfigurationAdapter) conf).getDelegate(); kieBaseConf.setOption(RuleEngineOption.RETEOO); kieBaseConf.setProperty(ConsequenceExceptionHandlerOption.PROPERTY_NAME, DefaultConsequenceExceptionHandler.class.getCanonicalName()); return new KnowledgeBaseAdapter(delegate.newKnowledgeBase(kbaseId, kieBaseConf)); }
private KieBaseConfiguration newConfiguration(Properties properties, ClassLoader... classLoader) { KieBaseConfiguration conf = delegate.newKnowledgeBaseConfiguration(properties, classLoader); conf.setProperty(ConsequenceExceptionHandlerOption.PROPERTY_NAME, DefaultConsequenceExceptionHandler.class.getCanonicalName()); return conf; }
public KnowledgeBase newKnowledgeBase(KnowledgeBaseConfiguration conf) { KieBaseConfiguration kieBaseConf = ((KnowledgeBaseConfigurationAdapter) conf).getDelegate(); kieBaseConf.setOption(RuleEngineOption.RETEOO); kieBaseConf.setProperty(ConsequenceExceptionHandlerOption.PROPERTY_NAME, DefaultConsequenceExceptionHandler.class.getCanonicalName()); return new KnowledgeBaseAdapter(delegate.newKnowledgeBase(kieBaseConf)); }
public KnowledgeSessionConfiguration newKnowledgeSessionConfiguration(Properties properties) { return new KnowledgeSessionConfigurationAdapter(delegate.newKnowledgeSessionConfiguration(properties)); }