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