public class DefaultDmnEngineConfiguration extends DmnEngineConfiguration
Constructor and Description |
---|
DefaultDmnEngineConfiguration() |
Modifier and Type | Method and Description |
---|---|
DmnEngine |
buildEngine()
Create a
DmnEngine with this configuration |
DefaultDmnEngineConfiguration |
customPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
Set the list of post decision evaluation listeners.
|
DefaultDmnEngineConfiguration |
customPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of post decision table evaluation listeners.
|
DefaultDmnEngineConfiguration |
customPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
Set the list of pre decision 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 |
defaultLiteralExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate literal 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 |
enableFeelLegacyBehavior(boolean enableFeelLegacyBehavior)
Controls whether the FEEL legacy behavior is enabled or not
|
DefaultDmnEngineConfiguration |
engineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
Set the engine metric collector
|
DefaultDmnEngineConfiguration |
feelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders)
Set a list of FEEL Custom Function Providers.
|
DefaultDmnEngineConfiguration |
feelEngineFactory(FeelEngineFactory feelEngineFactory)
Set the factory to create a
FeelEngine |
List<DmnDecisionEvaluationListener> |
getCustomPostDecisionEvaluationListeners() |
List<DmnDecisionTableEvaluationListener> |
getCustomPostDecisionTableEvaluationListeners() |
List<DmnDecisionEvaluationListener> |
getCustomPreDecisionEvaluationListeners() |
List<DmnDecisionTableEvaluationListener> |
getCustomPreDecisionTableEvaluationListeners() |
List<DmnDecisionEvaluationListener> |
getDecisionEvaluationListeners()
The list of decision evaluation listeners of the configuration.
|
List<DmnDecisionTableEvaluationListener> |
getDecisionTableEvaluationListeners()
The list of decision table evaluation listeners of the configuration.
|
protected Collection<? extends DmnDecisionEvaluationListener> |
getDefaultDmnDecisionEvaluationListeners() |
String |
getDefaultInputEntryExpressionLanguage() |
String |
getDefaultInputExpressionExpressionLanguage() |
String |
getDefaultLiteralExpressionLanguage() |
String |
getDefaultOutputEntryExpressionLanguage() |
ElProvider |
getElProvider() |
DmnEngineMetricCollector |
getEngineMetricCollector() |
List<FeelCustomFunctionProvider> |
getFeelCustomFunctionProviders() |
FeelEngine |
getFeelEngine()
The feel engine used by the engine.
|
FeelEngineFactory |
getFeelEngineFactory() |
DmnScriptEngineResolver |
getScriptEngineResolver() |
DmnTransformer |
getTransformer() |
void |
init() |
protected void |
initDecisionEvaluationListener() |
protected void |
initDecisionTableEvaluationListener() |
void |
initElDefaults() |
protected void |
initElProvider() |
protected void |
initFeelEngine() |
protected void |
initMetricCollector() |
protected void |
initScriptEngineResolver() |
boolean |
isEnableFeelLegacyBehavior() |
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 |
setCustomPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
Set the list of post decision evaluation listeners.
|
void |
setCustomPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners)
Set the list of post decision table evaluation listeners.
|
void |
setCustomPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
Set the list of pre decision 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 |
setDefaultLiteralExpressionLanguage(String expressionLanguage)
Set the default expression language which is used to evaluate literal 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 |
setEnableFeelLegacyBehavior(boolean enableFeelLegacyBehavior)
Controls whether the FEEL legacy behavior is enabled or not
|
void |
setEngineMetricCollector(DmnEngineMetricCollector engineMetricCollector)
Set the engine metric collector
|
void |
setFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders)
Set a list of FEEL Custom Function Providers.
|
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 FEEL_EXPRESSION_LANGUAGE_DMN12
public static final String FEEL_EXPRESSION_LANGUAGE_DMN13
public static final String JUEL_EXPRESSION_LANGUAGE
protected DmnEngineMetricCollector engineMetricCollector
protected List<DmnDecisionTableEvaluationListener> customPreDecisionTableEvaluationListeners
protected List<DmnDecisionTableEvaluationListener> customPostDecisionTableEvaluationListeners
protected List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners
protected List<DmnDecisionEvaluationListener> decisionEvaluationListeners
protected List<DmnDecisionEvaluationListener> customPreDecisionEvaluationListeners
protected List<DmnDecisionEvaluationListener> customPostDecisionEvaluationListeners
protected DmnScriptEngineResolver scriptEngineResolver
protected ElProvider elProvider
protected FeelEngineFactory feelEngineFactory
protected FeelEngine feelEngine
protected List<FeelCustomFunctionProvider> feelCustomFunctionProviders
protected boolean enableFeelLegacyBehavior
protected String defaultInputExpressionExpressionLanguage
protected String defaultInputEntryExpressionLanguage
protected String defaultOutputEntryExpressionLanguage
protected String defaultLiteralExpressionLanguage
protected DmnTransformer transformer
public DmnEngine buildEngine()
DmnEngineConfiguration
DmnEngine
with this configurationbuildEngine
in class DmnEngineConfiguration
DmnEngine
public void init()
public void initElDefaults()
protected void initMetricCollector()
protected void initDecisionTableEvaluationListener()
protected void initDecisionEvaluationListener()
protected Collection<? extends DmnDecisionEvaluationListener> getDefaultDmnDecisionEvaluationListeners()
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<DmnDecisionEvaluationListener> getCustomPreDecisionEvaluationListeners()
getCustomPreDecisionEvaluationListeners
in class DmnEngineConfiguration
public void setCustomPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
DmnEngineConfiguration
setCustomPreDecisionEvaluationListeners
in class DmnEngineConfiguration
public DefaultDmnEngineConfiguration customPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
DmnEngineConfiguration
customPreDecisionEvaluationListeners
in class DmnEngineConfiguration
decisionEvaluationListeners
- the list of pre decision evaluation listenerspublic List<DmnDecisionEvaluationListener> getCustomPostDecisionEvaluationListeners()
getCustomPostDecisionEvaluationListeners
in class DmnEngineConfiguration
public void setCustomPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
DmnEngineConfiguration
setCustomPostDecisionEvaluationListeners
in class DmnEngineConfiguration
decisionEvaluationListeners
- the list of post decision table evaluation listenerspublic DefaultDmnEngineConfiguration customPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners)
DmnEngineConfiguration
customPostDecisionEvaluationListeners
in class DmnEngineConfiguration
public List<DmnDecisionTableEvaluationListener> getDecisionTableEvaluationListeners()
public List<DmnDecisionEvaluationListener> getDecisionEvaluationListeners()
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 String getDefaultLiteralExpressionLanguage()
public void setDefaultLiteralExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for literal expressionspublic DefaultDmnEngineConfiguration defaultLiteralExpressionLanguage(String expressionLanguage)
expressionLanguage
- the default expression language for literal expressionspublic DmnTransformer getTransformer()
public void setTransformer(DmnTransformer transformer)
transformer
- the DMN transformerpublic DefaultDmnEngineConfiguration transformer(DmnTransformer transformer)
transformer
- the DMN transformerpublic List<FeelCustomFunctionProvider> getFeelCustomFunctionProviders()
public void setFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders)
feelCustomFunctionProviders
- a list of FEEL Custom Function Providerspublic DefaultDmnEngineConfiguration feelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders)
feelCustomFunctionProviders
- a list of FEEL Custom Function Providerspublic boolean isEnableFeelLegacyBehavior()
public void setEnableFeelLegacyBehavior(boolean enableFeelLegacyBehavior)
enableFeelLegacyBehavior
- the FEEL legacy behaviorpublic DefaultDmnEngineConfiguration enableFeelLegacyBehavior(boolean enableFeelLegacyBehavior)
enableFeelLegacyBehavior
- the FEEL legacy behaviorCopyright © 2022. All rights reserved.