@Override
protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {
PhdParticipantBean bean = (PhdParticipantBean) object;
PhdParticipant guiding = process.addGuiding(bean);
if (bean.getGuidingAcceptanceLetter() != null && bean.getGuidingAcceptanceLetter().getFileContent() != null) {
PhdProgramDocumentUploadBean acceptanceLetter = bean.getGuidingAcceptanceLetter();
new PhdGuiderAcceptanceLetter(guiding, acceptanceLetter.getType(), "", bean.getGuidingAcceptanceLetter()
.getFileContent(), bean.getGuidingAcceptanceLetter().getFilename(), userView.getPerson());
}
return process;
}