public class KnowledgeBuilderFactory extends Object
KnowledgeBuilder kbuilder = KnowlegeBuilderFactory.newKnowledgeBuilder();
Constructor and Description |
---|
KnowledgeBuilderFactory() |
Modifier and Type | Method and Description |
---|---|
static DecisionTableConfiguration |
newDecisionTableConfiguration()
DecisionTable resources require a ResourceConfiguration, that configuration instance is created
here.
|
static JaxbConfiguration |
newJaxbConfiguration(com.sun.tools.xjc.Options xjcOpts,
String systemId) |
static KnowledgeBuilder |
newKnowledgeBuilder()
Create and return a new KnowledgeBuilder, using the default KnowledgeBuilderConfigurations
|
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBase kbase) |
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBase kbase,
KnowledgeBuilderConfiguration conf) |
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBuilderConfiguration conf)
Create and return a new KnowledgeBuilder, using he given KnowledgeBuilderConfigurations
|
static KnowledgeBuilderConfiguration |
newKnowledgeBuilderConfiguration()
Create a KnowledgeBuilderConfiguration on which properties can be set.
|
static KnowledgeBuilderConfiguration |
newKnowledgeBuilderConfiguration(Properties properties,
ClassLoader... classLoaders)
Create a KnowledgeBuilderConfiguration on which properties can be set.
|
static ScoreCardConfiguration |
newScoreCardConfiguration()
ResourceConfiguration for score cards.
|
public static KnowledgeBuilder newKnowledgeBuilder()
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBuilderConfiguration conf)
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBase kbase)
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBase kbase, KnowledgeBuilderConfiguration conf)
public static KnowledgeBuilderConfiguration newKnowledgeBuilderConfiguration()
public static KnowledgeBuilderConfiguration newKnowledgeBuilderConfiguration(Properties properties, ClassLoader... classLoaders)
public static DecisionTableConfiguration newDecisionTableConfiguration()
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); DecisionTableConfiguration dtconf = KnowledgeBuilderFactory.newDecisionTableConfiguration(); dtconf.setInputType( DecisionTableInputType.XLS ); dtconf.setWorksheetName( "Tables_2" ); kbuilder.add( new URL( "file://IntegrationExampleTest.xls" ), ResourceType.DTABLE, dtconf ); assertFalse( kbuilder.hasErrors() ); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
public static ScoreCardConfiguration newScoreCardConfiguration()
Simple example showing how to build a KnowledgeBase from an XLS resource.
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); ScoreCardConfiguration scconf = KnowledgeBuilderFactory.newScoreCardConfiguration(); scconf.setWorksheetName( "Tables_2" ); kbuilder.add( ResourceFactory.newUrlResource( "file://IntegrationExampleTest.xls" ), ResourceType.SCARD, scconf ); assertFalse( kbuilder.hasErrors() ); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
public static JaxbConfiguration newJaxbConfiguration(com.sun.tools.xjc.Options xjcOpts, String systemId)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.