Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I am trying to direct my workflow based on what sub type the PBO is. The following syntax only works for the Parent types.
if (primaryBusinessObject instanceof wt.doc.WTDocument|com.ptc.ReferenceDocument)
Thanks
Robert Serhan wrote:
I am trying to direct my workflow based on what sub type the PBO is. The following syntax only works for the Parent types.
if (primaryBusinessObject instanceof wt.doc.WTDocument|com.ptc.ReferenceDocument)
Thanks
You can use ClientTypedUtility.getTypeIdentifier() something like this:
TypeIdentifier ti = ClientTypedUtility.getTypeIdentifier((Object)primaryBusinessObject);
String type = ti.getTypename();//returns something like "wt.doc.WTDocument|mySubTypeName"