org.kie.dmn.validation.DMNv1x.P22.LambdaPredicate2294D0F980610714641BD2E5410332B6 Maven / Gradle / Ivy
The newest version!
package org.kie.dmn.validation.DMNv1x.P22;
import static org.kie.dmn.validation.DMNv1x.Rules8D6A06B2CA38F0645C450A91AA760788.*;
import org.kie.dmn.model.api.*;
import org.kie.dmn.core.util.MsgUtil;
import org.kie.dmn.validation.DMNv1x.*;
import org.kie.dmn.api.core.DMNMessage;
import org.kie.dmn.core.impl.DMNMessageImpl;
import org.kie.dmn.api.feel.runtime.events.FEELEvent;
import org.kie.dmn.feel.lang.types.BuiltInType;
import org.kie.dmn.feel.parser.feel11.FEELParser;
import org.kie.dmn.core.compiler.ImportDMNResolverUtil;
import org.kie.dmn.feel.runtime.events.SyntaxErrorEvent;
import org.kie.dmn.core.util.Msg;
import org.kie.dmn.validation.ValidatorUtil;
import static org.kie.dmn.validation.ValidatorUtil.getRootItemDef;
import static org.kie.dmn.validation.ValidatorUtil.rightOfHash;
import static org.kie.dmn.validation.ValidatorUtil.nameOrIDOfTable;
import static org.kie.dmn.validation.ValidatorUtil.leftOfHash;
import org.drools.modelcompiler.dsl.pattern.D;
@org.drools.compiler.kie.builder.MaterializedLambda()
public enum LambdaPredicate2294D0F980610714641BD2E5410332B6 implements org.drools.model.functions.Predicate1, org.drools.model.functions.HashedExpression {
INSTANCE;
public static final String EXPRESSION_HASH = "3541F1C003E7BDFAF22B439EA6EF7378";
public java.lang.String getExpressionHash() {
return EXPRESSION_HASH;
}
@Override()
public boolean test(org.kie.dmn.model.api.Invocation _this) throws java.lang.Exception {
return (org.drools.modelcompiler.util.EvaluationUtil.areNullSafeEquals(_this.getExpression(), null) || _this.getExpression() instanceof LiteralExpression && _this.getExpression() instanceof org.kie.dmn.model.api.LiteralExpression && org.drools.modelcompiler.util.EvaluationUtil.areNullSafeEquals(((org.kie.dmn.model.api.LiteralExpression) _this.getExpression()).getText(), ""));
}
@Override()
public org.drools.model.functions.PredicateInformation predicateInformation() {
org.drools.model.functions.PredicateInformation info = new org.drools.model.functions.PredicateInformation("expression == null || expression#LiteralExpression.text == \"\"");
info.addRuleNames("INVOCATION_MISSING_EXPRESSION", "org/kie/dmn/validation/DMNv1x/dmn-validation-rules.drl");
return info;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy