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
  • 3 replies
  • 64 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.

3 replies

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

avillanueva
23-Emerald I
May 26, 2026

Where is the workflow running? Is it on the Change Task or Change Notice? If CN, must account for multiple change tasks.

Community Moderator
June 1, 2026

Hi ​@CZ_12009435,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,
Anurag