org.kie.kogito.examples.P8A.LambdaPredicate8AEC357D8025621E888E02387784F4DD Maven / Gradle / Ivy
package org.kie.kogito.examples.P8A;
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 LambdaPredicate8AEC357D8025621E888E02387784F4DD 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.21.x/release/kogito-examples-deploy/kogito-examples/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl");
return info;
}
}