All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.kogito.examples.PersonValidationServiceRuleUnitInstance Maven / Gradle / Ivy

There is a newer version: 1.25.0.Final
Show newest version
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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy