Class DecisionTableImpl

    • Constructor Detail

      • DecisionTableImpl

        public DecisionTableImpl​(java.lang.String name,
                                 java.util.List<java.lang.String> parameterNames,
                                 java.util.List<DTInputClause> inputs,
                                 java.util.List<DTOutputClause> outputs,
                                 java.util.List<DTDecisionRule> decisionRules,
                                 HitPolicy hitPolicy,
                                 FEEL feel)
    • Method Detail

      • evaluate

        public FEELFnResult<java.lang.Object> evaluate​(EvaluationContext ctx,
                                                       java.lang.Object[] params)
        Evaluates this decision table returning the result
        Parameters:
        ctx -
        params - these are the required information items, not to confuse with the columns of the decision table that are expressions derived from these parameters
        Returns:
      • checkResults

        public static java.util.Map<java.lang.Integer,​java.lang.String> checkResults​(java.util.List<? extends DecisionTable.OutputClause> outputs,
                                                                                           EvaluationContext ctx,
                                                                                           java.util.List<? extends Indexed> matches,
                                                                                           java.util.List<java.lang.Object> results)
      • getHitPolicy

        public HitPolicy getHitPolicy()
      • setName

        public void setName​(java.lang.String name)
      • getParameterNames

        public java.util.List<java.lang.String> getParameterNames()
      • setCompiledParameterNames

        public void setCompiledParameterNames​(java.util.List<CompiledExpression> compiledParameterNames)
        This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).
      • getCompiledParameterNames

        public java.util.List<CompiledExpression> getCompiledParameterNames()
        This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).
      • getSignature

        public java.lang.String getSignature()