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

org.kie.kogito.examples.PersonValidationServiceRuleUnit5466976326428571668 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.core.impl.RuleBase;
import org.drools.modelcompiler.KieBaseBuilder;
import org.drools.ruleunits.api.RuleUnit;
import org.drools.ruleunits.impl.factory.AbstractRuleUnit;
import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance;
import org.drools.ruleunits.impl.sessions.RuleUnitExecutorImpl;

public class PersonValidationServiceRuleUnit5466976326428571668 extends AbstractRuleUnit {

    private static final RuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new org.kie.kogito.examples.Rules471B42E068A21F8D5BEF529A54AE3B27_PersonValidationService());

    public PersonValidationServiceRuleUnit5466976326428571668() {
        super(org.kie.kogito.examples.PersonValidationService.class.getCanonicalName());
    }

    @Override
    public PersonValidationServiceRuleUnitInstance5466976326428571668 internalCreateInstance(org.kie.kogito.examples.PersonValidationService data) {
        ReteEvaluator reteEvaluator = new RuleUnitExecutorImpl(ruleBase);
        return new PersonValidationServiceRuleUnitInstance5466976326428571668(this,
                                                                              data,
                                                                              reteEvaluator);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy