Package org.camunda.bpm.dmn.engine.impl
Class DefaultDmnEngineConfiguration
java.lang.Object
org.camunda.bpm.dmn.engine.DmnEngineConfiguration
org.camunda.bpm.dmn.engine.impl.DefaultDmnEngineConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<DmnDecisionEvaluationListener>protected List<DmnDecisionTableEvaluationListener>protected List<DmnDecisionEvaluationListener>protected List<DmnDecisionTableEvaluationListener>protected List<DmnDecisionEvaluationListener>protected List<DmnDecisionTableEvaluationListener>protected Stringprotected Stringprotected Stringprotected Stringprotected ElProviderprotected booleanEnable FEEL legacy behaviorprotected DmnEngineMetricCollectorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected List<FeelCustomFunctionProvider>a list of DMN FEEL custom function providersprotected FeelEngineprotected FeelEngineFactorystatic final Stringprotected booleanprotected DmnScriptEngineResolverprotected DmnTransformer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate aDmnEnginewith this configurationcustomPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Set the list of post decision evaluation listeners.customPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Set the list of post decision table evaluation listeners.customPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Set the list of pre decision evaluation listeners.customPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Set the list of pre decision table evaluation listeners.defaultInputEntryExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate input entries.defaultInputExpressionExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate input expressions.defaultLiteralExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate literal expressions.defaultOutputEntryExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate output entries.elProvider(ElProvider elProvider) Set the el provider which is used by the engine to evaluate an el expression.enableFeelLegacyBehavior(boolean enableFeelLegacyBehavior) Controls whether the FEEL legacy behavior is enabled or notengineMetricCollector(DmnEngineMetricCollector engineMetricCollector) Set the engine metric collectorfeelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders) Set a list of FEEL Custom Function Providers.feelEngineFactory(FeelEngineFactory feelEngineFactory) Set the factory to create aFeelEngineThe list of decision evaluation listeners of the configuration.The list of decision table evaluation listeners of the configuration.protected Collection<? extends DmnDecisionEvaluationListener>The feel engine used by the engine.voidinit()protected voidprotected voidvoidprotected voidprotected voidprotected voidprotected voidbooleanbooleanscriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver) Set the script engine resolver which is used by the engine to get an instance of a script engine to evaluated expressions.voidsetCustomPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Set the list of post decision evaluation listeners.voidsetCustomPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Set the list of post decision table evaluation listeners.voidsetCustomPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Set the list of pre decision evaluation listeners.voidsetCustomPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Set the list of pre decision table evaluation listeners.voidsetDefaultInputEntryExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate input entries.voidsetDefaultInputExpressionExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate input expressions.voidsetDefaultLiteralExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate literal expressions.voidsetDefaultOutputEntryExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate output entries.voidsetElProvider(ElProvider elProvider) Set the el provider which is used by the engine to evaluate an el expression.voidsetEnableFeelLegacyBehavior(boolean enableFeelLegacyBehavior) Controls whether the FEEL legacy behavior is enabled or notvoidsetEngineMetricCollector(DmnEngineMetricCollector engineMetricCollector) Set the engine metric collectorvoidsetFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders) Set a list of FEEL Custom Function Providers.voidsetFeelEngineFactory(FeelEngineFactory feelEngineFactory) Set the factory to create aFeelEnginesetReturnBlankTableOutputAsNull(boolean returnBlankTableOutputAsNull) Controls whether blank table outputs are swallowed or returned asnull.voidsetScriptEngineResolver(DmnScriptEngineResolver scriptEngineResolver) Set the script engine resolver which is used by the engine to get an instance of a script engine to evaluated expressions.voidsetTransformer(DmnTransformer transformer) Set the DMN transformer used to transform the DMN model.transformer(DmnTransformer transformer) Set the DMN transformer used to transform the DMN model.Methods inherited from class org.camunda.bpm.dmn.engine.DmnEngineConfiguration
createDefaultDmnEngineConfiguration
-
Field Details
-
FEEL_EXPRESSION_LANGUAGE
- See Also:
-
FEEL_EXPRESSION_LANGUAGE_ALTERNATIVE
- See Also:
-
FEEL_EXPRESSION_LANGUAGE_DMN12
- See Also:
-
FEEL_EXPRESSION_LANGUAGE_DMN13
- See Also:
-
FEEL_EXPRESSION_LANGUAGE_DMN14
- See Also:
-
FEEL_EXPRESSION_LANGUAGE_DMN15
- See Also:
-
JUEL_EXPRESSION_LANGUAGE
- See Also:
-
engineMetricCollector
-
customPreDecisionTableEvaluationListeners
-
customPostDecisionTableEvaluationListeners
-
decisionTableEvaluationListeners
-
decisionEvaluationListeners
-
customPreDecisionEvaluationListeners
-
customPostDecisionEvaluationListeners
-
scriptEngineResolver
-
elProvider
-
feelEngineFactory
-
feelEngine
-
feelCustomFunctionProviders
a list of DMN FEEL custom function providers -
enableFeelLegacyBehavior
protected boolean enableFeelLegacyBehaviorEnable FEEL legacy behavior -
defaultInputExpressionExpressionLanguage
-
defaultInputEntryExpressionLanguage
-
defaultOutputEntryExpressionLanguage
-
defaultLiteralExpressionLanguage
-
transformer
-
returnBlankTableOutputAsNull
protected boolean returnBlankTableOutputAsNull
-
-
Constructor Details
-
DefaultDmnEngineConfiguration
public DefaultDmnEngineConfiguration()
-
-
Method Details
-
buildEngine
Description copied from class:DmnEngineConfigurationCreate aDmnEnginewith this configuration- Specified by:
buildEnginein classDmnEngineConfiguration- Returns:
- the created
DmnEngine
-
init
public void init() -
initElDefaults
public void initElDefaults() -
initMetricCollector
protected void initMetricCollector() -
initDecisionTableEvaluationListener
protected void initDecisionTableEvaluationListener() -
initDecisionEvaluationListener
protected void initDecisionEvaluationListener() -
getDefaultDmnDecisionEvaluationListeners
protected Collection<? extends DmnDecisionEvaluationListener> getDefaultDmnDecisionEvaluationListeners() -
initElProvider
protected void initElProvider() -
initScriptEngineResolver
protected void initScriptEngineResolver() -
initFeelEngine
protected void initFeelEngine() -
getEngineMetricCollector
- Specified by:
getEngineMetricCollectorin classDmnEngineConfiguration- Returns:
- the configured engine metric collector
-
setEngineMetricCollector
Description copied from class:DmnEngineConfigurationSet the engine metric collector- Specified by:
setEngineMetricCollectorin classDmnEngineConfiguration- Parameters:
engineMetricCollector- the engine metric collector to use
-
engineMetricCollector
public DefaultDmnEngineConfiguration engineMetricCollector(DmnEngineMetricCollector engineMetricCollector) Description copied from class:DmnEngineConfigurationSet the engine metric collector- Specified by:
engineMetricCollectorin classDmnEngineConfiguration- Parameters:
engineMetricCollector- the engine metric collector to use- Returns:
- this configuration
-
getCustomPreDecisionTableEvaluationListeners
- Specified by:
getCustomPreDecisionTableEvaluationListenersin classDmnEngineConfiguration- Returns:
- the list of custom pre decision table evaluation listeners
-
setCustomPreDecisionTableEvaluationListeners
public void setCustomPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of pre decision table evaluation listeners. They will be notified before the default decision table evaluation listeners.- Specified by:
setCustomPreDecisionTableEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionTableEvaluationListeners- the list of pre decision table evaluation listeners
-
customPreDecisionTableEvaluationListeners
public DefaultDmnEngineConfiguration customPreDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of pre decision table evaluation listeners. They will be notified before the default decision table evaluation listeners.- Specified by:
customPreDecisionTableEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionTableEvaluationListeners- the list of pre decision table evaluation listeners- Returns:
- this configuration
-
getCustomPostDecisionTableEvaluationListeners
- Specified by:
getCustomPostDecisionTableEvaluationListenersin classDmnEngineConfiguration- Returns:
- the list of custom post decision table evaluation listeners
-
setCustomPostDecisionTableEvaluationListeners
public void setCustomPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of post decision table evaluation listeners. They will be notified after the default decision table evaluation listeners.- Specified by:
setCustomPostDecisionTableEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionTableEvaluationListeners- the list of post decision table evaluation listeners
-
customPostDecisionTableEvaluationListeners
public DefaultDmnEngineConfiguration customPostDecisionTableEvaluationListeners(List<DmnDecisionTableEvaluationListener> decisionTableEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of post decision table evaluation listeners. They will be notified after the default decision table evaluation listeners.- Specified by:
customPostDecisionTableEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionTableEvaluationListeners- the list of post decision table evaluation listeners- Returns:
- this configuration
-
getCustomPreDecisionEvaluationListeners
- Specified by:
getCustomPreDecisionEvaluationListenersin classDmnEngineConfiguration- Returns:
- the list of custom pre decision evaluation listeners
-
setCustomPreDecisionEvaluationListeners
public void setCustomPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of pre decision evaluation listeners. They will be notified before the default decision evaluation listeners.- Specified by:
setCustomPreDecisionEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionEvaluationListeners- the list of pre decision table evaluation listeners
-
customPreDecisionEvaluationListeners
public DefaultDmnEngineConfiguration customPreDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of pre decision evaluation listeners. They will be notified before the default decision evaluation listeners.- Specified by:
customPreDecisionEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionEvaluationListeners- the list of pre decision evaluation listeners- Returns:
- this configuration
-
getCustomPostDecisionEvaluationListeners
- Specified by:
getCustomPostDecisionEvaluationListenersin classDmnEngineConfiguration- Returns:
- the list of custom post decision evaluation listeners
-
setCustomPostDecisionEvaluationListeners
public void setCustomPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of post decision evaluation listeners. They will be notified after the default decision evaluation listeners.- Specified by:
setCustomPostDecisionEvaluationListenersin classDmnEngineConfiguration- Parameters:
decisionEvaluationListeners- the list of post decision table evaluation listeners
-
customPostDecisionEvaluationListeners
public DefaultDmnEngineConfiguration customPostDecisionEvaluationListeners(List<DmnDecisionEvaluationListener> decisionEvaluationListeners) Description copied from class:DmnEngineConfigurationSet the list of post decision evaluation listeners. They will be notified after the default decision evaluation listeners.- Specified by:
customPostDecisionEvaluationListenersin classDmnEngineConfiguration- Returns:
- this configuration
-
getDecisionTableEvaluationListeners
The list of decision table evaluation listeners of the configuration. Contains the pre, default and post decision table evaluation listeners. Is set during the build of an engine.- Returns:
- the list of decision table evaluation listeners
-
getDecisionEvaluationListeners
The list of decision evaluation listeners of the configuration. Contains the pre, default and post decision evaluation listeners. Is set during the build of an engine.- Returns:
- the list of decision table evaluation listeners
-
getScriptEngineResolver
- Returns:
- the script engine resolver
-
setScriptEngineResolver
Set the script engine resolver which is used by the engine to get an instance of a script engine to evaluated expressions.- Parameters:
scriptEngineResolver- the script engine resolver
-
scriptEngineResolver
public 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.- Parameters:
scriptEngineResolver- the script engine resolver- Returns:
- this
-
getElProvider
- Returns:
- the el provider
-
setElProvider
Set the el provider which is used by the engine to evaluate an el expression.- Parameters:
elProvider- the el provider
-
elProvider
Set the el provider which is used by the engine to evaluate an el expression.- Parameters:
elProvider- the el provider- Returns:
- this
-
getFeelEngineFactory
- Returns:
- the factory is used to create a
FeelEngine
-
setFeelEngineFactory
Set the factory to create aFeelEngine- Parameters:
feelEngineFactory- the feel engine factory
-
feelEngineFactory
Set the factory to create aFeelEngine- Parameters:
feelEngineFactory- the feel engine factory- Returns:
- this
-
getFeelEngine
The feel engine used by the engine. Is initialized during the build of the engine.- Returns:
- the feel engine
-
getDefaultInputExpressionExpressionLanguage
- Returns:
- the default expression language for input expressions
-
setDefaultInputExpressionExpressionLanguage
Set the default expression language which is used to evaluate input expressions. It is used for all input expressions which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for input expressions
-
defaultInputExpressionExpressionLanguage
public DefaultDmnEngineConfiguration defaultInputExpressionExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate input expressions. It is used for all input expressions which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for input expressions- Returns:
- this configuration
-
getDefaultInputEntryExpressionLanguage
- Returns:
- the default expression language for input entries
-
setDefaultInputEntryExpressionLanguage
Set the default expression language which is used to evaluate input entries. It is used for all input entries which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for input entries
-
defaultInputEntryExpressionLanguage
Set the default expression language which is used to evaluate input entries. It is used for all input entries which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for input entries- Returns:
- this configuration
-
getDefaultOutputEntryExpressionLanguage
- Returns:
- the default expression language for output entries
-
setDefaultOutputEntryExpressionLanguage
Set the default expression language which is used to evaluate output entries. It is used for all output entries which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for output entries
-
defaultOutputEntryExpressionLanguage
public DefaultDmnEngineConfiguration defaultOutputEntryExpressionLanguage(String expressionLanguage) Set the default expression language which is used to evaluate output entries. It is used for all output entries which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for output entries- Returns:
- this configuration
-
getDefaultLiteralExpressionLanguage
- Returns:
- the default expression language for literal expressions
-
setDefaultLiteralExpressionLanguage
Set the default expression language which is used to evaluate literal expressions. It is used for all literal expressions which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for literal expressions
-
defaultLiteralExpressionLanguage
Set the default expression language which is used to evaluate literal expressions. It is used for all literal expressions which do not have a expression language set.- Parameters:
expressionLanguage- the default expression language for literal expressions- Returns:
- this configuration
-
getTransformer
- Returns:
- the DMN transformer
-
setTransformer
Set the DMN transformer used to transform the DMN model.- Parameters:
transformer- the DMN transformer
-
transformer
Set the DMN transformer used to transform the DMN model.- Parameters:
transformer- the DMN transformer- Returns:
- this
-
getFeelCustomFunctionProviders
- Returns:
- the list of FEEL Custom Function Providers
-
setFeelCustomFunctionProviders
public void setFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders) Set a list of FEEL Custom Function Providers.- Parameters:
feelCustomFunctionProviders- a list of FEEL Custom Function Providers
-
feelCustomFunctionProviders
public DefaultDmnEngineConfiguration feelCustomFunctionProviders(List<FeelCustomFunctionProvider> feelCustomFunctionProviders) Set a list of FEEL Custom Function Providers.- Parameters:
feelCustomFunctionProviders- a list of FEEL Custom Function Providers- Returns:
- this
-
isEnableFeelLegacyBehavior
public boolean isEnableFeelLegacyBehavior()- Returns:
- whether FEEL legacy behavior is enabled or not
-
setEnableFeelLegacyBehavior
public void setEnableFeelLegacyBehavior(boolean enableFeelLegacyBehavior) Controls whether the FEEL legacy behavior is enabled or not- Parameters:
enableFeelLegacyBehavior- the FEEL legacy behavior
-
enableFeelLegacyBehavior
Controls whether the FEEL legacy behavior is enabled or not- Parameters:
enableFeelLegacyBehavior- the FEEL legacy behavior- Returns:
- this
-
isReturnBlankTableOutputAsNull
public boolean isReturnBlankTableOutputAsNull()- Returns:
- whether blank table outputs are swallowed or returned as
null.
-
setReturnBlankTableOutputAsNull
public DefaultDmnEngineConfiguration setReturnBlankTableOutputAsNull(boolean returnBlankTableOutputAsNull) Controls whether blank table outputs are swallowed or returned asnull.- Parameters:
returnBlankTableOutputAsNull- toggles whether blank table outputs are swallowed or returned asnull.- Returns:
- this
-