Class BuildResultAccumulatorImpl

    • Constructor Detail

      • BuildResultAccumulatorImpl

        public BuildResultAccumulatorImpl()
    • 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 BuildResultAccumulator
      • getInternalResultCollection

        public Collection<org.kie.internal.builder.KnowledgeBuilderResult> getInternalResultCollection()
      • getResults

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

        public boolean hasResults​(org.kie.internal.builder.ResultSeverity... problemTypes)
      • 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()
      • addAll

        public void addAll​(Collection<? extends org.kie.internal.builder.KnowledgeBuilderResult> results)