public class DecisionModel
extends java.lang.Object
Constructor and Description |
---|
DecisionModel(java.lang.String xlsMainFileName)
Creates an instance of OpenRulesEngine
|
DecisionModel(java.lang.String mainDecisionName,
java.lang.String xlsMainFileName)
Creates an instance of OpenRulesEngine
|
Modifier and Type | Method and Description |
---|---|
Decision |
createDecision(java.lang.String name)
Creates and returns an instance of Decision based on the existing engine
|
Goal |
createGoal(java.lang.String goalName)
Creates and returns an instance of Goal defined in this decision model
|
void |
generateJavaInterfaces(java.lang.String goalName,
java.lang.String outputFolder,
java.lang.String packageName)
Generates java interfaces for business objects that will be passed to the decision model
|
java.lang.Object[] |
getData(java.lang.String dataArrayName)
Returns an array of objects defined in Excel Data table "name"
|
OpenRulesEngine |
getEngine() |
Glossary |
getGlossary() |
java.lang.Object |
getVariable(java.lang.String variableName)
Returns an object defined in Excel Variable table "name"
|
void |
log(java.lang.String text) |
public DecisionModel(java.lang.String mainDecisionName, java.lang.String xlsMainFileName)
mainDecisionName
- xlsMainFileName
- public DecisionModel(java.lang.String xlsMainFileName)
xlsMainFileName
- public OpenRulesEngine getEngine()
public Glossary getGlossary()
public Decision createDecision(java.lang.String name)
a
- decision's name - can be a goal or a name a table of the type Decisionpublic Goal createGoal(java.lang.String goalName)
a
- goal's namepublic void log(java.lang.String text)
public java.lang.Object[] getData(java.lang.String dataArrayName)
name
- a string with the name of the Excel Data table (e.g. "employees")public java.lang.Object getVariable(java.lang.String variableName)
name
- a string with the name of the Excel Variable table (e.g. "employee")public void generateJavaInterfaces(java.lang.String goalName, java.lang.String outputFolder, java.lang.String packageName)
outputFolder
- - the name of the source folder for the generated Java packages and classes, e.g. "src"packageName
- - the name of the Java package that will be created in the "outputFolder" and in which
the generated Java classes will be placed