Workflow Email Notifications
This section provides you with details on customizing Windchill workflow email notifications.
The following types of notifications are detailed :
Workflow Task Notifications
Workflow Process Notifications
Workflow Notification Robot Notifications
Calendar Delegate Notifications
Customizable Templates
To customize these notifications, you need to edit the html templates. Which notification templateneeds to be edited for each notification type is listed below.
Workflow Task Notifications
General Template: <Windchill>\codebase\templates\workNotification\General_<Locale>.html
* 
If you are usinga separate template for “Subject” theneditthe following template: <Windchill>\codebase\templates\workNotification\GeneralSubject_<Locale>.html
WorkflowProcess notifications:
There are various types of Workflow Process notifications that you can customize.
Approaching Deadline Notifications
<Windchill>\codebase\templates\workflow\ApproachingDeadlineNotification_<Locale>.html
Overdue Notifications
<Windchill>\codebase\templates\workflow\OverdueNotification_<Locale>.html
Past Deadline Notifications
<Windchill>\codebase\templates\workflow\PastDeadlineNotification_<Locale>.html
* 
If you are usinga separate template for “Subject” theneditthe following template: <Windchill>\codebase\templates\workflow\DeadlineNotificationSubject_<Locale>.html
Workflow Notification Robot notifications:
General Template: <Windchill>\codebase\templates\workNotification\NotificationRobot_<Locale>.html
* 
If you are usinga separate template for “Subject” theneditthe following template: <Windchill>\codebase\templates\workNotification\NotificationRobotSubject_<Locale>.html
Calendar Delegate Notifications:
General Template : <Windchill>\codebase\templates\calendar\DelegateNotification.htm
* 
If you are usinga separate template for “Subject” theneditthe following template: <Windchill>\codebase\templates\calendar\DelegateNotificationSubject_<Locale>.html
How to Customize Notification Templates
In an email notification template, the block between the Windchill script beginSubject and endSubject are used to generate the email subject text. This block can be added anywhere within the<html> tag in the template.
Windchill script calls made frombeginSubject and endSubjecttag will customize the subject of the email where asWindchill script calls made from <body> tag will customize thebody of the email.
For example:
<html>
<SCRIPT LANGUAGE=Windchill> <!-- beginSubject --> </SCRIPT>
<SCRIPT LANGUAGE=Windchill> <!-- getSubject --> </SCRIPT>
<SCRIPT LANGUAGE=Windchill> <!-- endSubject --> </SCRIPT>
</html>
In the above example, an email generated for notification willhave ofsubject consisting of themethods defined in the “Subject” template mentioned above.
Alternatively, individual methods within Windchill tags can be added within the beginSubject and endSubject tags.
<SCRIPT LANGUAGE=Windchill>
<!-- beginSubject -->
</SCRIPT>
<SCRIPT LANGUAGE=Windchill>
<!-- getProcessName -->
</SCRIPT>
<SCRIPT LANGUAGE=Windchill>
<!-- getPrimaryBusinessObjectName -->
</SCRIPT>
<SCRIPT LANGUAGE=Windchill>
<!-- endSubject -->
</SCRIPT>
There are standard methods written for these notification types. These are listed below.
Common Methods
addText text="<value>"
getActivityName
getActivityVariable varName="<Variable Name>"(not applicable for Notification Robot)
getInitSubject
getPrimaryBusinessObjectName
getProcessName
getProcessVariable varName="< Variable Name >"
Methods forWorkflow Task Notification
activityAttributes (This method shall be used in body only)
activityNotificationUrl(This method shall be used in body only)
getDeadline
Methods for Calendar Delegate Notification
getDelegatedBy
getDelegationDate
getDelegationPeriod
Methods for Workflow Process Notification
getDeadline
getDeadLineLabel
getOverdueTaskRow
getOwnerRole
getParentProcess
getProcessManagerURL
getState (This method shall only be used only be used for abort notification.
projectLinkAttributes (This method shall only be used for projectlink notification body)
Methods for WorkflowNotificationRobotNotification
activityDescription
activityDescriptionPlain
activityName
getProcessManagerURL
getProcessManagerURLPlain
getProcessOverviewURL
getProcessOverviewURLPlain
messageText
messageTextPlain
primaryBusinessObjectLink
primaryBusinessObjectLinkPlain
processDescription
processDescriptionPlain
processName
projectLinkAttributes(This method shall only be used for projectlink notification body)
Est-ce que cela a été utile ?