org.kie.kogito.examples.P2C.LambdaPredicate2C4215E38894ACD8ED418A07116D1A2A Maven / Gradle / Ivy
package org.kie.kogito.examples.P2C;
import static org.kie.kogito.examples.Rules471B42E068A21F8D5BEF529A54AE3B27.*;
import org.kie.kogito.examples.*;
import org.kie.kogito.examples.demo.Person;
import org.drools.modelcompiler.dsl.pattern.D;
@org.drools.compiler.kie.builder.MaterializedLambda()
public enum LambdaPredicate2C4215E38894ACD8ED418A07116D1A2A implements org.drools.model.functions.Predicate1, org.drools.model.functions.HashedExpression {
INSTANCE;
public static final String EXPRESSION_HASH = "A24655EFC6B7BA9A0D8D6862A0CD19A6";
public java.lang.String getExpressionHash() {
return EXPRESSION_HASH;
}
@Override()
public boolean test(org.kie.kogito.examples.demo.Person _this) throws java.lang.Exception {
return org.drools.modelcompiler.util.EvaluationUtil.greaterThanNumbers(_this.getAge(), 18);
}
@Override()
public org.drools.model.functions.PredicateInformation predicateInformation() {
org.drools.model.functions.PredicateInformation info = new org.drools.model.functions.PredicateInformation("age > 18");
info.addRuleNames("Is adult", "/home/jenkins/workspace/KIE/kogito/1.15.x/release/kogito-examples-deploy/kogito-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl");
return info;
}
}