org.kie.kogito.examples.P2F.LambdaConsequence2F5397C2C7DEB832EEAED75E3EC51429 Maven / Gradle / Ivy
package org.kie.kogito.examples.P2F;
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 LambdaConsequence2F5397C2C7DEB832EEAED75E3EC51429 implements org.drools.model.functions.Block2, org.drools.model.functions.HashedExpression {
INSTANCE;
public static final String EXPRESSION_HASH = "6A441FB5B83A8FD28E6D1070F70E73A9";
public java.lang.String getExpressionHash() {
return EXPRESSION_HASH;
}
private final org.drools.model.BitMask mask_$person = org.drools.model.BitMask.getPatternMask(DomainClassesMetadata471B42E068A21F8D5BEF529A54AE3B27.org_kie_kogito_examples_demo_Person_Metadata_INSTANCE, "adult");
@Override()
public void execute(org.drools.model.Drools drools, org.kie.kogito.examples.demo.Person $person) throws java.lang.Exception {
{
{
($person).setAdult(true);
}
drools.update($person, mask_$person);
}
}
}