Sometimes you need to remove status, or
unstatus, something in Teamcenter.
Typically removing status from objects would be an administrator task to repair some sort of mistake. But you could have a standard workflow where objects go through state changes from statused to unstatused and back again.
Here’s how to do it.
One option is the
release_man command line utility. However this can only be run by a DBA user and doesn’t leave any records behind. You can’t tell who used it to remove status, and you can’t build it into a workflow.
An Unstatus Workflow
Another option is to create a workflow that removes the status. This gives you the ability to provide the functionality to non-DBA users, perhaps after having passed certain validations by rule handlers or by human review and approval. An unstatusing workflow also leaves a record in the database of who ran it, and if necessary who approved it, etc.
Remove Status with
Creating an unstatusing workflow is easy. Just add the
set-status action-handler, with the argument
DELETE, to a task in the workflow. If you want to delete only certain statuses add
-f=status_name to the argument list. If you want to delete all statuses then use
DELETE by itself. The handler is normally attached to the complete action of a task, but you can attach it anywhere.
The DELETE option has been available for a while but it wasn’t always documented. It used to be only mentioned in a IR that you could look up in the GTAC database. It is documented in TC 8.3, however.
Was this helpful? Please let me know!