#set ($email_title = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.title")) #set ($email_message = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.message")) #set ($email_message2 = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.message2")) #set ($email_launch = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.launch")) #set ($email_launchapp = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.launchapp")) #set ($email_updatedby = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.updatedby")) #set ($email_actionrequired = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.actionrequired")) #set ($email_notification = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.notification")) #set ($email_previousvalue = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.previousvalue")) #set ($email_newvalue = $CommonFunctions.displayTermFromResourceBundle("ProjectDialogs", "email.change.notification.newvalue")) $email_title #set ($hasChangeNotification = false) #set ($hasAlertNotification = false) #set ($hasActionNotification = false) #set ($hasTaskNotification = false) #set ($hasThresholdValues = false) #foreach ($notification in $notificationList) #if (!$hasChangeNotification && $notification.getClassType().equals("INVESTMENT_NOTIFICATION")) #set ($hasChangeNotification = true) #end #if (!$hasAlertNotification && $notification.getClassType().equals("INVESTMENT_ALERT_NOTIFICATION")) #set ($hasAlertNotification = true) #end #if (!$hasActionNotification && ($notification.getClassType().equals("ACTION_NOTIFICATION") || ($notification.getClassType().equals("SUBSCRIBE_NOTIFICATION")))) #set ($hasActionNotification = true) #end #if ($notification.getClassType().equals("TASK_NOTIFICATION") && ($hasTaskNotification == false)) #set ($hasTaskNotification = true) #end #end
#if ($hasActionNotification) #foreach ($notification in $notificationList) #if ($notification.getClassType().equals("ACTION_NOTIFICATION") || $notification.getClassType().equals("SUBSCRIBE_NOTIFICATION")) #set ($thresholdViewList = $notification.getThresholdViewList()) #foreach ($thresholdView in $thresholdViewList) #set ($hasThresholdValues = true) #end #end #end #if ($hasThresholdValues)
$email_message

     $email_launch
#foreach ($notification in $notificationList) #if ($notification.getClassType().equals("ACTION_NOTIFICATION") || $notification.getClassType().equals("SUBSCRIBE_NOTIFICATION")) #set ($thresholdViewList = $notification.getThresholdViewList()) #foreach ($thresholdView in $thresholdViewList) #end #end #end
$CommonFunctions.getDisplayReadyLabel("Project") $email_updatedby $email_actionrequired
$CommonFunctions.displayReady($CommonFunctions.getProjectDisplayedName($thresholdView.getId(),$showProjectIds)) $CommonFunctions.displayReady($notification.getOriginatorFullName()) #if ($thresholdView.getNewInstructions().equals("Yes")) #end #set ($formList = $thresholdView.getUserFormExpiryVector()) #if ($formList.size() > 0) #end #if ($thresholdView.getProgressAge() == "2" || $thresholdView.getProgressAge() == "3") #end #if ($thresholdView.getUserOpenTaskVector().size() > 0) #set ($expiredTask = false) #set ($newTask = false) #set ($advanceDays = "") #if ($ptv.getExpiredTasks().startsWith("Yes") && ($ptv.getExpiredTasks().length() > 3)) #set ($advanceDays = $ptv.getExpiredTasks().substring(3)) #end #foreach ($task in $thresholdView.getUserOpenTaskVector()) #if ($task.getFlag().equals("NEWTOME")) #set ($newTask = true) #else #set ($expiredTask = true) #end #end #if ($newTask) #end #if ($expiredTask) #end #end #if ($thresholdView.getWorkflowAlertDays().length() > 0) #end #if ($thresholdView.getPriorityAge() == "2" || $thresholdView.getPriorityAge() == "3") #end
$CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.newinstructions")
$CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.updateforms")
$CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.updateprogress") $CommonFunctions.displayReady($thresholdView.getF_ProgressAge())
$CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.newtasks")
$CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.overduetask") #if ($advanceDays.length() > 0) $CommonFunctions.displayTermFromResourceBundle("MainViews", "mainviews.mytracker.alerts.overduedays") $advanceDays #end
$CommonFunctions.displayTermFromResourceBundle("$currentUserId", "MainViews", "mainviews.mytracker.alerts.workflowthreshold", "$thresholdView.getWorkflowAlertDays()" )
$CommonFunctions.displayTermFromResourceBundle("$currentUserId", "MainViews", "mainviews.mytracker.alerts.updatepoints") ($CommonFunctions.displayReady($thresholdView.getF_PriorityAge()))
#end #end #if ($hasChangeNotification || $hasAlertNotification || $hasTaskNotification)
$email_message2

     $email_launch
#foreach ($investmentID in $investmentIDList) #set ($index = $velocityCount - 1) #end
$CommonFunctions.getDisplayReadyLabel("Project") $email_updatedby $email_notification $email_previousvalue $email_newvalue
$CommonFunctions.displayReady($CommonFunctions.getProjectDisplayedName($investmentID,$showProjectIds)) #foreach ($notification in $notificationList) #set ($isActionNotification = false) #if ($notification.getClassType().equals("ACTION_NOTIFICATION") || $notification.getClassType().equals("SUBSCRIBE_NOTIFICATION")) #set ($isActionNotification = true) #end #if (!$isActionNotification) #if ($notification.getInvestmentID().equals($investmentID)) #set ($isAlertOrTaskNotification = false) #if ($notification.getClassType().equals("INVESTMENT_ALERT_NOTIFICATION") || $notification.getClassType().equals("TASK_NOTIFICATION")) #set ($isAlertOrTaskNotification = true) #end #if ($isAlertOrTaskNotification) #set ($fontweight = "designated") #else #set ($fontweight = "borderless") #end #end #end #end
$CommonFunctions.unescape($notification.getOriginatorFullName()) $CommonFunctions.unescape($notification.getType()) $CommonFunctions.unescape($notification.getPreviousValue()) $CommonFunctions.unescape($notification.getNewValue())
#end
$email_launchapp