SessionContainer permanentSession = session.getPermanentContainer();
IEngUserProfile profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
IDossierPresentationsDAO dpDAO = DAOFactory.getDossierPresentationDAO();
dpDAO.setUserProfile(profile);
DossierPresentation currPresentation = dpDAO.getCurrentPresentation(dossierId, workflowProcessId);
boolean approvedBool = false;
if (approved.equalsIgnoreCase("true")) {
approvedBool = true;
}
currPresentation.setApproved(new Boolean(approvedBool));
Integer nextProg = dpDAO.getNextProg(dossierId);
currPresentation.setProg(nextProg);
dpDAO.updatePresentation(currPresentation);
// put attributes into response
if (approved.equalsIgnoreCase("true")) {
response.setAttribute(DossierConstants.PUBLISHER_NAME, "DossierCompleteActivityLoopback");
} else {