org.drools.rule.builder.NamedConsequenceBuilder Maven / Gradle / Ivy
package org.drools.rule.builder;
import org.drools.lang.descr.BaseDescr;
import org.drools.lang.descr.NamedConsequenceDescr;
import org.drools.rule.NamedConsequence;
import org.drools.rule.Pattern;
import org.drools.rule.RuleConditionElement;
public class NamedConsequenceBuilder implements RuleConditionBuilder {
public NamedConsequence build(RuleBuildContext context, BaseDescr descr) {
return build( context, descr, null );
}
public NamedConsequence build(RuleBuildContext context, BaseDescr descr, Pattern prefixPattern) {
NamedConsequenceDescr namedConsequence = (NamedConsequenceDescr) descr;
return new NamedConsequence( namedConsequence.getName(), namedConsequence.isBreaking() );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy