}
public ActionForward uploadCandidacyReview(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
final PhdProgramDocumentUploadBean bean = getRenderedObject("documentToUpload");
if (!bean.hasAnyInformation()) {
return uploadCandidacyReviewInvalid(mapping, actionForm, request, response);
}
try {
ExecuteProcessActivity.run(getProcess(request),
org.fenixedu.academic.domain.phd.candidacy.activities.UploadCandidacyReview.class,
Collections.singletonList(bean));
addSuccessMessage(request, "message.document.uploaded.with.success");
} catch (DomainException e) {
addErrorMessage(request, e.getKey(), e.getArgs());
bean.setFile(null);
return uploadCandidacyReviewInvalid(mapping, actionForm, request, response);
}
RenderUtils.invalidateViewState();
return manageCandidacyReview(mapping, actionForm, request, response);