Load Release History
Release Activity is now a typed object.
You can access the Release Activity from Site > Utilities > Type and Attribute Management. For more information on Type and Attribute Management, see Working with the Type and Attribute Management Utility.
You can add local and global attributes for Release Activity, but sub-types can not be created.
The following steps describe how to load ESI ReleaseActivity objects:
1. Create a XML file for the data to be loaded in the format described before and save it as releaseactivity.xml to any location.
2. For example:
Standalone Parts:
<csvBeginReleaseActivities handler="com.ptc.windchill.esi.load.LoadESI.beginCreateReleaseActivities"/>
<csvCreateReleaseActivity handler="com.ptc.windchill.esi.load.LoadESI.createReleaseActivity">
<csvreleaseClass>com.ptc.windchill.esi.Part</csvreleaseClass>
<csvobjectClass>wt.part.WTPart</csvobjectClass>
<csvobjectNumber>0000000003</csvobjectNumber>
<csvobjectVersion>A</csvobjectVersion>
<csvobjectIteration>1</csvobjectIteration>
<csvobjectView>Design</csvobjectView>
<csvtargetNumber>00000003</csvtargetNumber>
<csvpublishDate>2021-07-22</csvpublishDate>
<csvpublishAction>create</csvpublishAction>
<csvpublishMessage>Loader Part</csvpublishMessage>
</csvCreateReleaseActivity>
<csvEndReleaseActivities handler="com.ptc.windchill.esi.load.LoadESI.endCreateReleaseActivities"/>
Attributes
<csvBeginReleaseActivities handler="com.ptc.windchill.esi.load.LoadESI.beginCreateReleaseActivities"/>
<csvCreateReleaseActivity handler="com.ptc.windchill.esi.load.LoadESI.createReleaseActivity">
<csvreleaseClass>com.ptc.windchill.esi.Part</csvreleaseClass>
<csvobjectClass>wt.part.WTPart</csvobjectClass>
<csvobjectNumber>0000000003</csvobjectNumber>
<csvobjectVersion>A</csvobjectVersion>
<csvobjectIteration>1</csvobjectIteration>
<csvobjectView>Design</csvobjectView>
<csvtargetNumber>00000003</csvtargetNumber>
<csvpublishDate>2021-07-22</csvpublishDate>
<csvpublishAction>create</csvpublishAction>
<csvpublishMessage>Loader Part</csvpublishMessage>
</csvCreateReleaseActivity>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue"> <!--Global attributes-->
<csvdefinition>StringIBA</csvdefinition>
<csvvalue1>StringIBA_value</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvLoadValue handler="com.ptc.core.lwc.server.LoadAttValues.loadValue"> <!--Local attributes-->
<csvname>StringAttr</csvname>
<csvrefType/>
<csvrefAtt/>
<csvvalue>DATA|java.lang.String|StringAttr_value</csvvalue>
</csvLoadValue>
<csvEndReleaseActivity handler="com.ptc.windchill.esi.load.LoadESI.endCreateReleaseActivity" />
<csvEndReleaseActivities handler="com.ptc.windchill.esi.load.LoadESI.endCreateReleaseActivities"/>
Assembly:
<csvCreateReleaseActivity handler="com.ptc.windchill.esi.load.LoadESI.createReleaseActivity">
<csvreleaseClass>com.ptc.windchill.esi.Part</csvreleaseClass>
<csvobjectClass>wt.part.WTPart</csvobjectClass>
<csvobjectNumber>0000000202</csvobjectNumber>
<csvobjectVersion>A</csvobjectVersion>
<csvobjectIteration>1</csvobjectIteration>
<csvobjectView>Design</csvobjectView>
<csvtargetNumber>00000003</csvtargetNumber>
<csvpublishDate>2015-07-05</csvpublishDate>
<svpublishAction>create</csvpublishAction>
<svpublishMessage>Loader Part</csvpublishMessage>
</csvCreateReleaseActivity>
* 
Since object 0000000202 is an assembly, it has two entries one for the part itself and one for the BOMheader.
3. Run the following command from Windchill shell:
windchill wt.load.LoadFromFile -d <path>\releaseactivity.xml
* 
In the above command, <wt_home> and <path> should be replaced by actual values. The newly created Windchill ESI ReleaseActivity objects will not be associated with an ESITransaction object. Given that there is no transaction, the release history will not be viewable via the Transaction Management GUI.
Was this helpful?