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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Determine Object sub type in a workflow

RobertSerhan
6-Contributor

Determine Object sub type in a workflow

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

1 REPLY 1

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"

Top Tags