Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Would someone please take a look at the following code and validate it for me. It seems simple enough, but I keep getting errors when my WF hits this conditional:
//retrieve document type of the PBO
wt.doc.DocumentType docType = (((wt.doc.WTDocument)primaryBusinessObject).getDocType());
if (docType==wt.doc.DocumentType.toDocumentType("$$Technical Publication") )
result="SRP";
else
result="SRP";
I am trying to make a decision based on the WTDocument SubType and route accordingly.
Thanks,
James Little
Corning Cable Systems
CAD Administrator