Use the releaseChangeable2 API to Set the Actual Finish Date
The change notice workflow is extended to several new functionalities. The new releaseChangeables2 API replaces the original releaseChangeables API. The releaseChangeables2 API releases the changeables associated with the specified VersionableChangeItem (change notice/change task), based on the release target transition defined in the resulting object.
Configuring the releaseChangeables2 API
To set the actual finish date on the change activity with release workflow version 1 and change notice version 1 workflow, follow these steps:
1. In the workflow, click the Release Changeables.
2. In the Release Changeables window, click Synchronize.
3. In the Synchronize window, call the releaseChangeables2 API to get the Actual Finish Date as shown below:
com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHeReleslper.releaseChangeables2((wt.change2.WTChangeActivity2)primaryBusinessObject);
This sets the Actual Finish Date for the change task.
Key Features of the releaseChangeables2 API
Here are the key features of the new API:
Releasing changeables—The new API releases the changeables associated with the specified VersionableChangeItem (change notice or change task) based on the release target transition defined in the resulting object.
Synchronizing affected objects—The new API ensures that affected objects are updated to the latest released version in eligible change tasks, including any open or eligible redlines.
Marking unincorporated objects—The new API marks all unincorporated objects within the change notice or change task as either approved or unincorporated using the approveHangingChanges API. It approves the new unincorporated changes or incorporates the existing unincorporated changes.
* 
The approveHangingChanges API is called from within the releaseChangeable2 API. Hence, it should not be called independently.
Updating change notices/tasks—This new API sets the Actual Finish Date to mark the release of the change notice or change task.
* 
PTC recommends that you update your workflows with this new API as soon as possible to adapt to this enhanced logic.
Isto foi útil?