Manually applying the email notification template changes for canceling a request

We can use the Workflow Notification Properties page to manually add information about canceling a request to the email notification template. When installing ISIM Fix Pack 6.0.0.3, the email notification template content that includes information about canceling a request is not automatically applied. The template changes available with Fix Pack 6.0.0.3 are not automatically applied so that the installation process does not overwrite any custom changes that we might have made to the email templates.

  1. From the navigation tree, select Configure System > Workflow Notification Properties.

  2. On the Workflow Notification Properties page, in the E-mail Notification Templates table, select Process Completion Template. Then, click Change.

  3. In the Notification Template page, modify the Plaintext body field by adding this code to the end of the existing code:
    <JS> if (process.canceledBy != null) { '<RE key="CanceledBy"/>: ' + process.canceledBy; }</JS>
    <JS> if (process.canceledBy != null) { '<RE key="DateCanceled"/>: '; }</JS> <RE key="readOnlyDateFormat"><PARM>
    <JS> if (process.canceledDate != null) return process.canceledDate.getTime(); else return '';</JS></PARM></RE>
    <JS> if (process.canceledBy != null) { '<RE key="CanceledReason"/>: 
    <JS> (process.canceledJustification == null)? '': process.canceledJustification;</JS>'; }</JS>

  4. In the Notification Template page, modify the XHTML body field by adding this code inside the table:
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3"><RE key="CanceledBy"/>:</td><td width="773" class="text-description" bgcolor="white"><JS>process.canceledBy;</JS></td></tr>
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3"><RE key="DateCanceled"/>:</td><td width="773" class="text-description" bgcolor="white"><RE key="readOnlyDateFormat"><PARM><JS>if (process.canceledDate != null) return process.canceledDate.getTime(); else return '';</JS></PARM></RE></td></tr>
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3"><RE key="CanceledReason"/>:</td><td width="773" class="text-description" bgcolor="white"><JS>process.canceledJustification;</JS></td></tr>
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3">
       <RE key="CanceledBy"/>:</td><td width="773" class="text-description" bgcolor="white">
       <JS>process.canceledBy;</JS></td></tr>
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3">
       <RE key="DateCanceled"/>:</td><td width="773" class="text-description" bgcolor="white">
       <RE key="readOnlyDateFormat"><PARM>
       <JS>if (process.canceledDate != null) return process.canceledDate.getTime();
       else return '';</JS>
       </PARM></RE></td></tr>
    <tr align="left" valign="middle"><td class="text-description" bgcolor="EBEDF3">
       <RE key="CanceledReason"/>:</td><td width="773" class="text-description" bgcolor="white">
       <JS>process.canceledJustification;</JS></td></tr>
    Place the new code inside the table between these two sets of existing code:
    <pre><JS>Enrole.localize(process.resultDetail, "$LOCALE");</JS></pre></td></tr>
    and
         </table>
            </td>
                    <!-- End Of Notification body -->

  5. To save the changes, click OK.

  6. On the Workflow Notification Properties page, click OK.

  7. On the Success page, click Close.

Parent topic: Workflow notification properties


Related tasks