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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy