Skip to main content
5-Regular Member
May 22, 2026
Question

The conditional checks if the PBO is drawing; if so, it advances; if not, it terminates.

  • May 22, 2026
  • 1 reply
  • 13 views

I need to create a conditional statement that checks if the PBO is drawing; if so, it advances; if not, it terminates. However, as a new Windchill administrator, I'm having trouble and can't find an article that can help me.

1 reply

20-Turquoise
May 22, 2026

You can use something like the following:

If using this in a workflow you will need need to fully qualify the classes. eg

EPMDocument will change to wt.epm.EPMDocument.

 

if (primaryBusinessObject instanceof EPMDocument) {
EPMDocument doc = (EPMDocument) primaryBusinessObject;
if (doc.getDocType().toString().equals("CADDRAWING")) {
// doc is a drawing
} else {
// doc is a not a drawing
}
}

 

5-Regular Member
May 22, 2026

I'll test the solution and let you know if it works. Do you recommend any articles or courses from PTC where I can learn more about this?

20-Turquoise
May 22, 2026

There are typically multiple PTC articles that would be of help but today I am getting:

Sorry. Article 229067 was not found. Here are some options:

when attempting to search for articles.

 

Felco Solutions offers Windchill API training:

https://www.felcosolutions.com/training