Class KiePMMLCompoundPredicateWithAccumulationASTFactory


  • public class KiePMMLCompoundPredicateWithAccumulationASTFactory
    extends Object
    Class used to generate KiePMMLDroolsRules out of a CompoundPredicate
    • Constructor Detail

      • KiePMMLCompoundPredicateWithAccumulationASTFactory

        public KiePMMLCompoundPredicateWithAccumulationASTFactory()
    • 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() is SURROGATE. 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() is AND, OR or XOR. Throws exception otherwise
        Parameters:
        builder -
        rules -
        reasonCodeAndValue -
        isLastCharacteristic -