Skip to main content
10-Marble
June 3, 2022
Solved

How to modify subject of activity task in workflow.

  • June 3, 2022
  • 2 replies
  • 2894 views

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


Best answer by HelesicPetr

@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

2 replies

16-Pearl
June 3, 2022
HelesicPetr
22-Sapphire II
June 6, 2022

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

10-Marble
June 8, 2022

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.

HelesicPetr
22-Sapphire II
June 8, 2022

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