cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Code for workflow to find document location in Windchill

SOLVED
Regular Member

Code for workflow to find document location in Windchill

Hi,

I need some guidance for workflow code to get name of the Product, where EPM or WT Document is located.

I need to include document location (Product name) as Promotion task notification email subject. I know how to customize task notification email template, but I also need document location.

Thanks in advance.

Tomaz

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Code for workflow to find document location in Windchill

Tomaz Jeras wrote:

Hi,

I need some guidance for workflow code to get name of the Product, where EPM or WT Document is located.

You can use the getContainerName() method. ie

wt.epm.EPMDocument epmDoc = <previously defined>

String epmDocContainer = epmDoc.getContainerName();

wt.doc.WTDocument wtDoc = <previously defined>

String wtDocContainer = wtDoc.getContainerName();

View solution in original post

2 REPLIES 2
Highlighted

Re: Code for workflow to find document location in Windchill

Tomaz Jeras wrote:

Hi,

I need some guidance for workflow code to get name of the Product, where EPM or WT Document is located.

You can use the getContainerName() method. ie

wt.epm.EPMDocument epmDoc = <previously defined>

String epmDocContainer = epmDoc.getContainerName();

wt.doc.WTDocument wtDoc = <previously defined>

String wtDocContainer = wtDoc.getContainerName();

View solution in original post

Highlighted

Re: Code for workflow to find document location in Windchill

Hi Randy,

thanks a lot for your help.

That's the method I was looking for.

Tomaz

Announcements
LiveWorx Call For Papers Happening Now!