Skip to main content
1-Visitor
October 25, 2012
Solved

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

  • October 25, 2012
  • 1 reply
  • 1582 views

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

Best answer by MatthewKnight

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

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

1 reply

1-Visitor
October 25, 2012

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

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

1-Visitor
October 29, 2012

Thanks Matt, worked as a charm.