Class KiePMMLPredicateASTFactory

    • Method Detail

      • declareRuleFromPredicate

        public void declareRuleFromPredicate​(java.lang.Number toAccumulate,
                                             java.lang.String statusToSet,
                                             KiePMMLReasonCodeAndValue reasonCodeAndValue,
                                             boolean isLastCharacteristic)
        Manage the given Predicate.

        It creates rules that, in the rhs, set an accumulation value

        At this point of the execution, predicate could be:

        1) @see True

        2) @see SimplePredicate

        3) @see CompoundPredicate

        4) @see SimpleSetPredicate

        Parameters:
        toAccumulate -
        statusToSet -
        reasonCodeAndValue -
        isLastCharacteristic -
      • declareRuleFromPredicate

        public void declareRuleFromPredicate​(java.lang.Object result,
                                             boolean isFinalLeaf)
        Manage the given Predicate.

        It creates rules that, in the rhs, eventually set a final result

        At this point of the execution, predicate could be:

        1) @see True

        2) @see SimplePredicate

        3) @see CompoundPredicate

        4) @see SimpleSetPredicate

        Parameters:
        result -
        isFinalLeaf -