Skip to content

Commit

Permalink
BZ-918682 - Unable to identify what process has invalid data
Browse files Browse the repository at this point in the history
 - clearing error lists
  • Loading branch information
krisv committed Nov 25, 2013
1 parent 392a30d commit ad3d3eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public List addResults(List list) {
List results = dialect.getResults();
if ( results != null ) {
list.addAll( results );
results.clear();
}
}
return list;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ public void addProcessFromXml( Resource resource ) {

try {
this.results.addAll( processBuilder.addProcessFromXml( resource ) );
this.processBuilder.getErrors().clear();
} catch (Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
Expand Down Expand Up @@ -2804,6 +2805,9 @@ private void resetProblemType( ResultSeverity problemType ) {

protected void resetProblems() {
this.results.clear();
if (this.processBuilder != null) {
this.processBuilder.getErrors().clear();
}
}

public String getDefaultDialect() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
public interface ProcessBuilder {

List<DroolsError> addProcessFromXml(Resource resource) throws IOException;

List<DroolsError> getErrors();

}

0 comments on commit ad3d3eb

Please sign in to comment.