org.kie.kogito.examples.PersonValidationServiceRuleUnitInstance Maven / Gradle / Ivy
package org.kie.kogito.examples;
public class PersonValidationServiceRuleUnitInstance extends org.drools.ruleunits.impl.KieSessionBasedRuleUnitInstance implements org.kie.kogito.rules.RuleUnitInstance {
public PersonValidationServiceRuleUnitInstance(org.kie.kogito.rules.RuleUnit unit, org.kie.kogito.examples.PersonValidationService value, org.kie.api.runtime.KieSession evaluator) {
super(unit, value, evaluator);
}
@Override()
protected void bind(org.kie.api.runtime.KieSession evaluator, org.kie.kogito.examples.PersonValidationService value) {
value.getPersons().subscribe(new org.drools.ruleunits.impl.EntryPointDataProcessor(evaluator.getEntryPoint("persons")));
evaluator.setGlobal("persons", value.getPersons());
}
}