remote process group aware for reusable templates
@@ -412,12 +412,15 @@ public class ImportReusableTemplate extends AbstractImportTemplateRoutine implem
}
importTemplate.setTemplateResults(newTemplateInstance);
+ if(newTemplateInstance.isSuccess() && newTemplateInstance.getProcessGroupEntity() != null) {
+
int templateValidationErrorCount = newTemplateInstance.getProcessGroupEntity().getContents().getProcessors()
.stream().filter(p -> p.getValidationErrors() != null)
.collect(Collectors.toSet()).size();
newTemplateInstance.setSuccess(ensureSensitiveProperties(newTemplateInstance, templateValidationErrorCount));
+ }
return newTemplateInstance;
}
