Class KiePMMLCompoundPredicateWithAccumulationASTFactory
- java.lang.Object
-
- org.kie.pmml.models.drools.ast.factories.KiePMMLCompoundPredicateWithAccumulationASTFactory
-
public class KiePMMLCompoundPredicateWithAccumulationASTFactory extends Object
Class used to generateKiePMMLDroolsRules out of aCompoundPredicate
-
-
Constructor Summary
Constructors Constructor Description KiePMMLCompoundPredicateWithAccumulationASTFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeclareRuleFromCompoundPredicateAndOrXor(KiePMMLDroolsRule.Builder builder, List<KiePMMLDroolsRule> rules, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)Method to be invoked when compoundPredicate.getBooleanOperator() isAND,ORorXOR .static voiddeclareRuleFromCompoundPredicateSurrogate(PredicateASTFactoryData predicateASTFactoryData, String agendaActivationGroup, Number toAccumulate, String statusToSet, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)Method to be invoked when compoundPredicate.getBooleanOperator() isSURROGATE.
-
-
-
Method Detail
-
declareRuleFromCompoundPredicateSurrogate
public static void declareRuleFromCompoundPredicateSurrogate(PredicateASTFactoryData predicateASTFactoryData, String agendaActivationGroup, Number toAccumulate, String statusToSet, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)
Method to be invoked when compoundPredicate.getBooleanOperator() isSURROGATE. Throws exception otherwise- Parameters:
predicateASTFactoryData-agendaActivationGroup-toAccumulate-statusToSet-reasonCodeAndValue-isLastCharacteristic-
-
declareRuleFromCompoundPredicateAndOrXor
public static void declareRuleFromCompoundPredicateAndOrXor(KiePMMLDroolsRule.Builder builder, List<KiePMMLDroolsRule> rules, KiePMMLReasonCodeAndValue reasonCodeAndValue, boolean isLastCharacteristic)
Method to be invoked when compoundPredicate.getBooleanOperator() isAND,ORorXOR . Throws exception otherwise- Parameters:
builder-rules-reasonCodeAndValue-isLastCharacteristic-
-
-