public ActionForward createCandidacyManualMigration(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
final Integer migrationId = getMigrationProcessId(request);
final PhdMigrationIndividualProcessData processData = getMigrationProcessData(migrationId);
PhdMigrationIndividualProcessDataBean processDataBean = getRenderedObject("processDataBean");
PhdMigrationIndividualPersonalDataBean personalDataBean = getRenderedObject("personalDataBean");
try {
processData.proceedWithMigration(Authenticate.getUser());
addSuccessMessage(request, "message.migration.manual.candidacy.success");
} catch (PhdMigrationException e) {
addErrorMessage(request, e.getKey());
request.setAttribute("processData", processData);
request.setAttribute("processDataBean", processDataBean);
request.setAttribute("personalDataBean", processData.getPhdMigrationIndividualPersonalData().getPersonalBean());
return mapping.findForward("editPersonalData");
} catch (DomainException e) {
addErrorMessage(request, e.getKey(), e.getArgs());
request.setAttribute("processData", processData);
request.setAttribute("processDataBean", processDataBean);
request.setAttribute("personalDataBean", personalDataBean);
return mapping.findForward("editPersonalData");
}
request.setAttribute("migratedProcess", processData.getPhdIndividualProgramProcess());
return mapping.findForward("concludeManualMigration");
}