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

org.kie.kogito.examples.PersonValidationServiceRuleUnitInstance8682151220782380442 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 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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy