if (scriptTasks != null && !scriptTasks.isEmpty()) {
for (final Object object : scriptTasks) {
final ScriptTask scriptTask = (ScriptTask) object;
if (scriptTask.getScriptFormat() == null || scriptTask.getScriptFormat().length() == 0) {
result.add(new ProcessValidationWorkerMarker(IMarker.SEVERITY_ERROR, String.format(NO_FORMAT_EXCEPTION_MESSAGE_PATTERN, scriptTask.getName()),
scriptTask.getId(), ValidationCode.VAL_002));
}
if (scriptTask.getScript() == null || scriptTask.getScript().length() == 0) {
result.add(new ProcessValidationWorkerMarker(IMarker.SEVERITY_ERROR, String.format(NO_SCRIPT_EXCEPTION_MESSAGE_PATTERN, scriptTask.getName()),
scriptTask.getId(), ValidationCode.VAL_003));
}
}
}