Skip to main content
10-Marble
Jun 3, 2022 9:57 AM UTC
Solved

How to modify subject of activity task in workflow.

I want to change the subject Line of email notification which is triggered by the activity. How we can do it?


HelesicPetr
22-Sapphire II
Jun 8, 2022 2:16 PM UTC

@Pushpak_Old 

So generally if you try to define more strings together it does not work 

If you use only your custom method it works?

Or it does not work with your custom method.

 

My experience is that the easiest way is to build the subject information in workflow task variable and then read it in the html template definition.  

 

It worked for me. I did not find any other way how to do that. 

 

Actually there is other option.  Build own method to send own email notification.

 

PetrH

8 replies

16-Pearl
Jun 3, 2022 1:09 PM UTC

Take a look at this article:
https://www.ptc.com/en/support/article/CS151717

 

Translate
HelesicPetr
22-Sapphire II
Jun 6, 2022 6:39 AM UTC

Hi @Pushpak_Old 

I you do not want to change name the task I would suggest to modify Notification HTML pages by changing NotificationRobot_<language>.html in  

<WT_HOME>\codebase\templates\workNotification

 

A Windchill help  describes explanation what is in the files. And also there is description how to add a subject to email. 

Cust_WorkflowAdmin_EmailNotif

 

Article describes how to change a Email subject same as in help.

cs361163

 

btw the getProcessVariable varName="< Variable Name >" is very useful to retrieve information from workflow parameter. 

 

Hope this can help.

PetrH

Translate
10-Marble
Jun 8, 2022 1:28 PM UTC

Hi @HelesicPetr ,

Thanks for your response !!!!!!!

The way you suggested it is correct but how we can call our own custom method inside the subject?

Do you know the way actually I created one method and I gave the path but it is not going inside that method.

Translate
HelesicPetr
22-Sapphire II
Jun 8, 2022 1:34 PM UTC

Hi @Pushpak_Old 

it is tricky :D.

 

You can not call your method from html template, or I never call own method inside the html template definition (to much effort :D) 

 

You need to call the method inside a workflow, save a value to a workflow variable and then use getProcessVariable in the html  template definition

 

Hope this can help

 

PetrH

Translate