Class BuildResultCollectorImpl

    • Constructor Detail

      • BuildResultCollectorImpl

        public BuildResultCollectorImpl()
    • Method Detail

      • hasErrors

        public boolean hasErrors()
        This will return true if there were errors in the package building and compiling phase
        Specified by:
        hasErrors in interface BuildResultCollector
      • getResults

        public org.kie.internal.builder.KnowledgeBuilderResults getResults​(org.kie.internal.builder.ResultSeverity... problemTypes)
        Description copied from interface: BuildResultCollector
        Return the knowledge builder results for the listed severities.
        Specified by:
        getResults in interface BuildResultCollector
      • hasResults

        public boolean hasResults​(org.kie.internal.builder.ResultSeverity... problemTypes)
        Specified by:
        hasResults in interface BuildResultCollector
      • hasWarnings

        public boolean hasWarnings()
      • hasInfo

        public boolean hasInfo()
      • reportError

        public void reportError​(org.kie.internal.builder.KnowledgeBuilderError error)
      • getErrors

        public PackageBuilderErrors getErrors()
        Returns:
        A list of Error objects that resulted from building and compiling the package.
      • resetErrors

        public void resetErrors()
        Reset the error list. This is useful when incrementally building packages. Care should be used when building this, if you clear this when there were errors on items that a rule depends on (eg functions), then you will get spurious errors which will not be that helpful.
      • resetWarnings

        public void resetWarnings()
      • resetProblems

        public void resetProblems()