for (TaskQualityFormItem item : taskQualityForm
.getTaskQualityFormItems()) {
if ((!taskQualityForm.isByItems())
&& (!taskQualityForm.isCorrectConsecutivePassed(item))) {
throw new ValidationException(
invalidValue(
_("cannot be checked until the previous item is checked before"),
"passed", item.getName(), taskQualityForm));
}
if ((!taskQualityForm.isByItems())
&& (!taskQualityForm.isCorrectConsecutiveDate(item))) {
throw new ValidationException(invalidValue(
_("must be after the previous date"),
"date", item.getName(), taskQualityForm));
}
if (!item.isIfDateCanBeNullConstraint()) {
throw new ValidationException(invalidValue(
_("date not specified"), "date",
item.getName(), taskQualityForm));
}
}
}