Teamcenter How to remove a workflow target if it is no longer related to the Change Notice

2022-07-29T14:41:10Z
Core Functions Administration

Summary


Details

A Change Notice Revision has a Drawing Revision related with the "Solution Item" relation. The Change Notice Revision is submitted to a workflow. The handler EPM-attach-related-objects adds the Drawing Revision as a workflow target. The Drawing Revision is "cut" from the "Solution Item" relation under the Change Notice Revision. The Drawing Revision is still a target of the workflow. Can the handler EPM-remove-objects or some other handler or handler combination be used to remove the Drawing Revision as a target? I need a method that can check the workflow target list against the Change Notice Revision relation list and identify the objects that are not relations but still targets and then remove those targets identified.

Solution

Use EPM-remove-objects with the keep_targets argument and just tell it to keep the change notice. This will remove everything other than the change notice. After that then have it re-attach the related objects as targets using EPM-attach-related-objects again.

Notes

KB Article ID# PL8663509

Contents

SummaryDetails

Associated Components

Core Functions - Client