Class DefaultDmnEngineConfiguration

    • Field Detail

      • FEEL_EXPRESSION_LANGUAGE

        public static final java.lang.String FEEL_EXPRESSION_LANGUAGE
        See Also:
        Constant Field Values
      • FEEL_EXPRESSION_LANGUAGE_ALTERNATIVE

        public static final java.lang.String FEEL_EXPRESSION_LANGUAGE_ALTERNATIVE
        See Also:
        Constant Field Values
      • FEEL_EXPRESSION_LANGUAGE_DMN12

        public static final java.lang.String FEEL_EXPRESSION_LANGUAGE_DMN12
        See Also:
        Constant Field Values
      • FEEL_EXPRESSION_LANGUAGE_DMN13

        public static final java.lang.String FEEL_EXPRESSION_LANGUAGE_DMN13
        See Also:
        Constant Field Values
      • JUEL_EXPRESSION_LANGUAGE

        public static final java.lang.String JUEL_EXPRESSION_LANGUAGE
        See Also:
        Constant Field Values
      • feelCustomFunctionProviders

        protected java.util.List<FeelCustomFunctionProvider> feelCustomFunctionProviders
        a list of DMN FEEL custom function providers
      • enableFeelLegacyBehavior

        protected boolean enableFeelLegacyBehavior
        Enable FEEL legacy behavior
      • defaultInputExpressionExpressionLanguage

        protected java.lang.String defaultInputExpressionExpressionLanguage
      • defaultInputEntryExpressionLanguage

        protected java.lang.String defaultInputEntryExpressionLanguage
      • defaultOutputEntryExpressionLanguage

        protected java.lang.String defaultOutputEntryExpressionLanguage
      • defaultLiteralExpressionLanguage

        protected java.lang.String defaultLiteralExpressionLanguage
    • Constructor Detail

      • DefaultDmnEngineConfiguration

        public DefaultDmnEngineConfiguration()
    • Method Detail

      • init

        public void init()
      • initElDefaults

        public void initElDefaults()
      • initMetricCollector

        protected void initMetricCollector()
      • initDecisionTableEvaluationListener

        protected void initDecisionTableEvaluationListener()
      • initDecisionEvaluationListener

        protected void initDecisionEvaluationListener()
      • getDefaultDmnDecisionEvaluationListeners

        protected java.util.Collection<? extends DmnDecisionEvaluationListener> getDefaultDmnDecisionEvaluationListeners()
      • initElProvider

        protected void initElProvider()
      • initScriptEngineResolver

        protected void initScriptEngineResolver()
      • initFeelEngine

        protected void initFeelEngine()
      • getDecisionTableEvaluationListeners

        public java.util.List<DmnDecisionTableEvaluationListener> 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

        public java.util.List<DmnDecisionEvaluationListener> 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

        public DmnScriptEngineResolver getScriptEngineResolver()
        Returns:
        the script engine resolver
      • setScriptEngineResolver

        public 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.
        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

        public ElProvider getElProvider()
        Returns:
        the el provider
      • setElProvider

        public void setElProvider​(ElProvider elProvider)
        Set the el provider which is used by the engine to evaluate an el expression.
        Parameters:
        elProvider - the el provider
      • elProvider

        public DefaultDmnEngineConfiguration elProvider​(ElProvider elProvider)
        Set the el provider which is used by the engine to evaluate an el expression.
        Parameters:
        elProvider - the el provider
        Returns:
        this
      • setFeelEngineFactory

        public void setFeelEngineFactory​(FeelEngineFactory feelEngineFactory)
        Set the factory to create a FeelEngine
        Parameters:
        feelEngineFactory - the feel engine factory
      • getFeelEngine

        public FeelEngine getFeelEngine()
        The feel engine used by the engine. Is initialized during the build of the engine.
        Returns:
        the feel engine
      • getDefaultInputExpressionExpressionLanguage

        public java.lang.String getDefaultInputExpressionExpressionLanguage()
        Returns:
        the default expression language for input expressions
      • setDefaultInputExpressionExpressionLanguage

        public void setDefaultInputExpressionExpressionLanguage​(java.lang.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
      • defaultInputExpressionExpressionLanguage

        public DefaultDmnEngineConfiguration defaultInputExpressionExpressionLanguage​(java.lang.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

        public java.lang.String getDefaultInputEntryExpressionLanguage()
        Returns:
        the default expression language for input entries
      • setDefaultInputEntryExpressionLanguage

        public void setDefaultInputEntryExpressionLanguage​(java.lang.String expressionLanguage)
        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

        public DefaultDmnEngineConfiguration defaultInputEntryExpressionLanguage​(java.lang.String expressionLanguage)
        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

        public java.lang.String getDefaultOutputEntryExpressionLanguage()
        Returns:
        the default expression language for output entries
      • setDefaultOutputEntryExpressionLanguage

        public void setDefaultOutputEntryExpressionLanguage​(java.lang.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
      • defaultOutputEntryExpressionLanguage

        public DefaultDmnEngineConfiguration defaultOutputEntryExpressionLanguage​(java.lang.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

        public java.lang.String getDefaultLiteralExpressionLanguage()
        Returns:
        the default expression language for literal expressions
      • setDefaultLiteralExpressionLanguage

        public void setDefaultLiteralExpressionLanguage​(java.lang.String expressionLanguage)
        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

        public DefaultDmnEngineConfiguration defaultLiteralExpressionLanguage​(java.lang.String expressionLanguage)
        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

        public DmnTransformer getTransformer()
        Returns:
        the DMN transformer
      • setTransformer

        public void setTransformer​(DmnTransformer transformer)
        Set the DMN transformer used to transform the DMN model.
        Parameters:
        transformer - the DMN transformer
      • getFeelCustomFunctionProviders

        public java.util.List<FeelCustomFunctionProvider> getFeelCustomFunctionProviders()
        Returns:
        the list of FEEL Custom Function Providers
      • setFeelCustomFunctionProviders

        public void setFeelCustomFunctionProviders​(java.util.List<FeelCustomFunctionProvider> feelCustomFunctionProviders)
        Set a list of FEEL Custom Function Providers.
        Parameters:
        feelCustomFunctionProviders - a list of FEEL Custom Function Providers
      • feelCustomFunctionProviders

        public DefaultDmnEngineConfiguration feelCustomFunctionProviders​(java.util.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

        public DefaultDmnEngineConfiguration enableFeelLegacyBehavior​(boolean enableFeelLegacyBehavior)
        Controls whether the FEEL legacy behavior is enabled or not
        Parameters:
        enableFeelLegacyBehavior - the FEEL legacy behavior
        Returns:
        this