approvalSession.checkExecutionPossibility(admin, adl);
approval.setApprovalAdmin(true, admin);
try {
approve(adl, approval);
if (gc.getUseApprovalNotifications()) {
final ApprovalDataVO approvalDataVO = approvalSession.getApprovalDataVO(adl);
if (approvalDataVO.getRemainingApprovals() != 0) {
approvalSession.sendApprovalNotification(admin, gc.getApprovalAdminEmailAddress(), gc.getApprovalNotificationFromAddress(), gc.getBaseUrl()
+ "adminweb/approval/approveaction.jsf?uniqueId=" + adl.getId(),
intres.getLocalizedMessage("notification.requestconcured.subject"), intres.getLocalizedMessage("notification.requestconcured.msg"),
adl.getId(), approvalDataVO.getRemainingApprovals(), approvalDataVO.getRequestDate(), approvalDataVO.getApprovalRequest(), approval);
} else {
approvalSession.sendApprovalNotification(admin, gc.getApprovalAdminEmailAddress(), gc.getApprovalNotificationFromAddress(), gc.getBaseUrl()
+ "adminweb/approval/approveaction.jsf?uniqueId=" + adl.getId(),
intres.getLocalizedMessage("notification.requestapproved.subject"), intres.getLocalizedMessage("notification.requestapproved.msg"),
adl.getId(), approvalDataVO.getRemainingApprovals(), approvalDataVO.getRequestDate(), approvalDataVO.getApprovalRequest(), approval);
}
}
logSession.log(admin, adl.getCaid(), LogConstants.MODULE_APPROVAL, new Date(), null, null, LogConstants.EVENT_INFO_APPROVALAPPROVED,
"Approval request with id : " + approvalId + " have been approved.");
} catch (ApprovalRequestExpiredException e) {