Class KiePMMLDroolsModelUtils


  • public class KiePMMLDroolsModelUtils
    extends Object
    Static utility methods for KiePMMLDroolsModels
    • Method Detail

      • getCorrectlyFormattedResult

        public static Object getCorrectlyFormattedResult​(Object rawValue,
                                                         org.kie.pmml.api.enums.DATA_TYPE targetType)
        Return an Object correctly formatted to be put in drl (e.g. if the targetType is DATA_TYPE.STRING returns the quoted rawValue.

        If rawValue is null, returns null

        Parameters:
        rawValue -
        targetType -
        Returns: