use of com.cognifide.cq.cqsm.api.logger.Progress in project APM by Cognifide.
the class ScriptManagerImpl method process.
@Override
public Progress process(Script script, final Mode mode, final Map<String, String> customDefinitions, ResourceResolver resolver) throws RepositoryException, PersistenceException {
Progress progress;
try {
progress = execute(script, mode, customDefinitions, resolver);
} catch (ExecutionException e) {
progress = new ProgressImpl(resolver.getUserID());
progress.addEntry(Message.getErrorMessage(e.getMessage()), Status.ERROR);
}
process(script, mode, progress.isSuccess(), resolver);
return progress;
}
Aggregations