Skip to main content
14-Alexandrite
December 11, 2025
Solved

Object Rename During Life Cycle State Transition

  • December 11, 2025
  • 2 replies
  • 270 views

Version: Windchill 13.0

 

Use Case: I have the following requirements relating to how a custom workflow I have implemented treats objects as they are moved from state 1 to state 2. 1. The part number should be given a prefix which communicates the date and time its state was changed. 2. A check is made to ensure the part has not historically been at a state of "Released" before allowing the transition to complete.


Description:

Has anybody got a suggestion on how I can implement these aspects into my workflow?

Best answer by joe_morton

To your point, yes, you could trace back through Windchill and see what happened, but you'd be putting yourself in a more complicated situation than necessary. 

 

Here's a simple scenario to consider:

  • User wants to "delete" a file. You renumber it, and hide it from view
  • Now the original number is available again, so you assign it to a new design
  • Someone else now needs to recover the "deleted" design

What would you do here? Assign a new number to the original design? Change the number on the new design, so you can use the original number for the original design? What if the new design has already gone to production?  You could try to write rules and policies for all these scenarios.. or just make one rule that numbers can't be reused, period. To me this is the cleaner solution.

 

I can relate to users wanting to delete files. I try to not allow it as much as possible. Obsoleting the file is better. The only case where I feel it's justified to delete a file is when the file existing creates confusion. If it's just old data that will no longer be used, just obsolete it. You can even move it to an obsolete folder so it doesn't clutter up the folder structure. 

2 replies

Fadel
23-Emerald I
December 12, 2025

you can use an expression robot to change the object identity within the WF 

https://www.ptc.com/en/support/article/CS145098 

Buiꓘa
joe_morton
18-Opal
18-Opal
December 16, 2025

Just know that the part number is part of the master record, meaning that updating the number updates every version of that part going all the way back. 

 

In general, it's not good practice to change a part number. I'm curious for the reasoning for the business requirement 

14-Alexandrite
December 16, 2025

Hi Joe. I was to rename the object to give it a prefix when it moves to a state that will hide the part from the users but will still be available in the system in the event that recovery is required. The reason for the change in part number means that the original part number will be un-consumed and could be assigned to a new part.

joe_morton
18-Opal
18-Opal
December 19, 2025

That's a huge data concern.. You shouldn't be reusing numbers! That's a recipe for confusion and a mess if you were to get audited.