org.kie.kogito.examples.PersonValidationServiceRuleUnitInstance9012984696870378159 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 PersonValidationServiceRuleUnitInstance9012984696870378159 extends ReteEvaluatorBasedRuleUnitInstance {
public PersonValidationServiceRuleUnitInstance9012984696870378159(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());
}
}