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

org.kie.kogito.examples.PersonValidationServiceRuleUnit9012984696870378159 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 PersonValidationServiceRuleUnit9012984696870378159 extends AbstractRuleUnit {

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy