public class DefaultDmnEngineConfiguration extends DmnEngineConfiguration
Modifier and Type | Field and Description |
---|---|
protected List<DmnDecisionTableEvaluationListener> |
customPostDecisionTableEvaluationListeners |
protected List<DmnDecisionTableEvaluationListener> |
customPreDecisionTableEvaluationListeners |
protected List<DmnDecisionTableEvaluationListener> |
decisionTableEvaluationListeners |
protected String |
defaultInputEntryExpressionLanguage |
protected String |
defaultInputExpressionExpressionLanguage |
protected String |
defaultOutputEntryExpressionLanguage |
protected ElProvider |
elProvider |
protected DmnEngineMetricCollector |
engineMetricCollector |
static String |
FEEL_EXPRESSION_LANGUAGE |
static String |
FEEL_EXPRESSION_LANGUAGE_ALTERNATIVE |
protected FeelEngine |
feelEngine |
protected FeelEngineFactory |
feelEngineFactory |
static String |
JUEL_EXPRESSION_LANGUAGE |
protected DmnScriptEngineResolver |
scriptEngineResolver |
protected DmnTransformer |
transformer |
Constructor and Description |
---|
DefaultDmnEngineConfiguration() |
Modifier and Type | Method and Description |
---|---|
DmnEngine |
buildEngine()
Create a
DmnEngine with this configuration |
DefaultDmnEngineConfiguration |
customPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of post decision table evaluation listeners.
|
DefaultDmnEngineConfiguration |
customPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of pre decision table evaluation listeners.
|
DefaultDmnEngineConfiguration |
defaultInputEntryExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate input entries.
|
DefaultDmnEngineConfiguration |
defaultInputExpressionExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate input expressions.
|
DefaultDmnEngineConfiguration |
defaultOutputEntryExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate output entries.
|
DefaultDmnEngineConfiguration |
elProvider(ElProvider elProvider)
Set the el provider which is used by the engine to
evaluate an el expression.
|
DefaultDmnEngineConfiguration |
engineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
Set the engine metric collector
|
DefaultDmnEngineConfiguration |
feelEngineFactory(FeelEngineFactory feelEngineFactory)
Set the factory to create a
FeelEngine |
List<DmnDecisionTableEvaluationListener> |
getCustomPostDecisionTableEvaluationListeners() |
List<DmnDecisionTableEvaluationListener> |
getCustomPreDecisionTableEvaluationListeners() |
List<DmnDecisionTableEvaluationListener> |
getDecisionTableEvaluationListeners()
The list of decision table evaluation listeners of the configuration.
|
protected Collection<? extends DmnDecisionTableEvaluationListener> |
getDefaultDmnDecisionTableEvaluationListeners() |
String |
getDefaultInputEntryExpressionLanguage() |
String |
getDefaultInputExpressionExpressionLanguage() |
String |
getDefaultOutputEntryExpressionLanguage() |
ElProvider |
getElProvider() |
DmnEngineMetricCollector |
getEngineMetricCollector() |
FeelEngine |
getFeelEngine()
The feel engine used by the engine.
|
FeelEngineFactory |
getFeelEngineFactory() |
DmnScriptEngineResolver |
getScriptEngineResolver() |
DmnTransformer |
getTransformer() |
void |
init() |
protected void |
initDecisionTableEvaluationListener() |
protected void |
initElProvider() |
protected void |
initFeelEngine() |
protected void |
initMetricCollector() |
protected void |
initScriptEngineResolver() |
DefaultDmnEngineConfiguration |
scriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver)
Set the script engine resolver which is used by the engine to get
an instance of a script engine to evaluated expressions.
|
void |
setCustomPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of post decision table evaluation listeners.
|
void |
setCustomPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of pre decision table evaluation listeners.
|
void |
setDefaultInputEntryExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate input entries.
|
void |
setDefaultInputExpressionExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate input expressions.
|
void |
setDefaultOutputEntryExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate output entries.
|
void |
setElProvider(ElProvider elProvider)
Set the el provider which is used by the engine to
evaluate an el expression.
|
void |
setEngineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
Set the engine metric collector
|
void |
setFeelEngineFactory(FeelEngineFactory feelEngineFactory)
Set the factory to create a
FeelEngine |
void |
setScriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver)
Set the script engine resolver which is used by the engine to get
an instance of a script engine to evaluated expressions.
|
void |
setTransformer(DmnTransformer transformer)
Set the DMN transformer used to transform the DMN model.
|
DefaultDmnEngineConfiguration |
transformer(DmnTransformer transformer)
Set the DMN transformer used to transform the DMN model.
|
createDefaultDmnEngineConfiguration
public static final String FEEL_EXPRESSION_LANGUAGE
public static final String FEEL_EXPRESSION_LANGUAGE_ALTERNATIVE
public static final String JUEL_EXPRESSION_LANGUAGE
protected DmnEngineMetricCollector engineMetricCollector
protected List<DmnDecisionTableEvaluationListener> customPreDecisionTableEvaluationListeners
protected List<DmnDecisionTableEvaluationListener> customPostDecisionTableEvaluationListeners
protected List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners
protected DmnScriptEngineResolver scriptEngineResolver
protected ElProvider elProvider
protected FeelEngineFactory feelEngineFactory
protected FeelEngine feelEngine
protected String defaultInputExpressionExpressionLanguage
protected String defaultInputEntryExpressionLanguage
protected String defaultOutputEntryExpressionLanguage
protected DmnTransformer transformer
public DmnEngine buildEngine()
DmnEngineConfiguration
DmnEngine
with this configurationbuildEngine
in class DmnEngineConfiguration
DmnEngine
public void init()
protected void initMetricCollector()
protected void initDecisionTableEvaluationListener()
protected Collection<? extends DmnDecisionTableEvaluationListener> getDefaultDmnDecisionTableEvaluationListeners()
protected void initElProvider()
protected void initScriptEngineResolver()
protected void initFeelEngine()
public DmnEngineMetricCollector getEngineMetricCollector()
getEngineMetricCollector
in class DmnEngineConfiguration
public void setEngineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
DmnEngineConfiguration
setEngineMetricCollector
in class DmnEngineConfiguration
engineMetricCollector
- the engine metric collector to usepublic DefaultDmnEngineConfiguration engineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
DmnEngineConfiguration
engineMetricCollector
in class DmnEngineConfiguration
engineMetricCollector
- the engine metric collector to usepublic List<DmnDecisionTableEvaluationListener> getCustomPreDecisionTableEvaluationListeners()
getCustomPreDecisionTableEvaluationListeners
in class DmnEngineConfiguration
public void setCustomPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
DmnEngineConfiguration
setCustomPreDecisionTableEvaluationListeners
in class DmnEngineConfiguration
decisionTableEvaluationListeners
- the list of pre decision table evaluation listenerspublic DefaultDmnEngineConfiguration customPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
DmnEngineConfiguration
customPreDecisionTableEvaluationListeners
in class DmnEngineConfiguration
decisionTableEvaluationListeners
- the list of pre decision table evaluation listenerspublic List<DmnDecisionTableEvaluationListener> getCustomPostDecisionTableEvaluationListeners()
getCustomPostDecisionTableEvaluationListeners
in class DmnEngineConfiguration
public void setCustomPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
DmnEngineConfiguration
setCustomPostDecisionTableEvaluationListeners
in class DmnEngineConfiguration
decisionTableEvaluationListeners
- the list of post decision table evaluation listenerspublic DefaultDmnEngineConfiguration customPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
DmnEngineConfiguration
customPostDecisionTableEvaluationListeners
in class DmnEngineConfiguration
decisionTableEvaluationListeners
- the list of post decision table evaluation listenerspublic List<DmnDecisionTableEvaluationListener> getDecisionTableEvaluationListeners()
public DmnScriptEngineResolver getScriptEngineResolver()
public void setScriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver)
scriptEngineResolver
- the script engine resolverpublic DefaultDmnEngineConfiguration scriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver)
scriptEngineResolver
- the script engine resolverpublic ElProvider getElProvider()
public void setElProvider(ElProvider elProvider)
elProvider
- the el providerpublic DefaultDmnEngineConfiguration elProvider(ElProvider elProvider)
elProvider
- the el providerpublic FeelEngineFactory getFeelEngineFactory()
FeelEngine
public void setFeelEngineFactory(FeelEngineFactory feelEngineFactory)
FeelEngine
feelEngineFactory
- the feel engine factorypublic DefaultDmnEngineConfiguration feelEngineFactory(FeelEngineFactory feelEngineFactory)
FeelEngine
feelEngineFactory
- the feel engine factorypublic FeelEngine getFeelEngine()
public String getDefaultInputExpressionExpressionLanguage()
public void setDefaultInputExpressionExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for input expressionspublic DefaultDmnEngineConfiguration defaultInputExpressionExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for input expressionspublic String getDefaultInputEntryExpressionLanguage()
public void setDefaultInputEntryExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for input entriespublic DefaultDmnEngineConfiguration defaultInputEntryExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for input entriespublic String getDefaultOutputEntryExpressionLanguage()
public void setDefaultOutputEntryExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for output entriespublic DefaultDmnEngineConfiguration defaultOutputEntryExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for output entriespublic DmnTransformer getTransformer()
public void setTransformer(DmnTransformer transformer)
transformer
- the DMN transformerpublic DefaultDmnEngineConfiguration transformer(DmnTransformer transformer)
transformer
- the DMN transformerCopyright © 2018. All rights reserved.