org.kie.kogito.examples.PersonValidationServiceRuleUnitInstance8682151220782380442 Maven / Gradle / Ivy
package org.kie.kogito.examples;
import org.drools.core.common.ReteEvaluator;
import org.drools.ruleunits.api.RuleUnit;
import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance;
public class PersonValidationServiceRuleUnitInstance8682151220782380442 extends ReteEvaluatorBasedRuleUnitInstance {
public PersonValidationServiceRuleUnitInstance8682151220782380442(RuleUnit unit, org.kie.kogito.examples.PersonValidationService workingMemory, ReteEvaluator reteEvaluator) {
super(unit,
workingMemory,
reteEvaluator);
}
@Override
protected void bind(ReteEvaluator evaluator, org.kie.kogito.examples.PersonValidationService ruleUnit) {
ruleUnit.getPersons()
.subscribe(new org.drools.ruleunits.impl.EntryPointDataProcessor(evaluator.getEntryPoint("persons")));
evaluator.setGlobal("persons",
ruleUnit.getPersons());
}
}