|
KIE Internal 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScoreCardConfiguration
ResourceConfiguration for score cards. It allows for the worksheet name to be specified.
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();
| Nested Class Summary | |
|---|---|
static class |
ScoreCardConfiguration.SCORECARD_INPUT_TYPE
|
| Method Summary | |
|---|---|
String |
getInputType()
|
String |
getWorksheetName()
|
boolean |
IsUsingExternalTypes()
|
void |
setInputType(ScoreCardConfiguration.SCORECARD_INPUT_TYPE inputType)
Defines the input source for reading the scorecard Supported sources are SCORECARD_INPUT_TYPE.PMML for a valid PMML 4.1 file SCORECARD_INPUT_TYPE.EXCEL for an excel file Default value is SCORECARD_INPUT_TYPE.EXCEL |
void |
setUsingExternalTypes(boolean useExternalTypes)
Which Type strategy to be used This parameter determines if the generated DRL uses Internal Types or dependes on external types (provided in the clasapath) for attibutes. |
void |
setWorksheetName(String name)
Which named xls worksheet should be used. |
| Methods inherited from interface org.kie.api.io.ResourceConfiguration |
|---|
fromProperties, toProperties |
| Method Detail |
|---|
void setWorksheetName(String name)
name - String getWorksheetName()
void setUsingExternalTypes(boolean useExternalTypes)
useExternalTypes - boolean IsUsingExternalTypes()
void setInputType(ScoreCardConfiguration.SCORECARD_INPUT_TYPE inputType)
inputType - String getInputType()
|
KIE Internal 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||