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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to obatain the Context/Product of a Document in a Workflow

EmyrVazquez
1-Newbie

How to obatain the Context/Product of a Document in a Workflow

I'm trying to obtain the context that holds a document from a Workflow expression.

I have been studying Java Doc but actually havent found any way to do it.

Could anybody help me with a clue or a suggestion.

Regards

1 ACCEPTED SOLUTION

Accepted Solutions

wt.doc.WTDocument document = (wt.doc.WTDocument)primaryBusinessObject;

wt.inf.container.WTContainer container = document.getContainer();

View solution in original post

2 REPLIES 2

wt.doc.WTDocument document = (wt.doc.WTDocument)primaryBusinessObject;

wt.inf.container.WTContainer container = document.getContainer();

Thanks Matt, worked as a charm.

Top Tags