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 CSV file for the data to be loaded in the format described before and save it as releaseactivity.csv to any location.
2. For example:
Standalone Parts:
#BeginReleaseActivities
BeginReleaseActivities
#CreateReleaseActivity,releaseClass,objectClass,objectNumber,objectVersion,objectIteration,objectView,targetNumber,publishDate,publishAction,containerPath,publishMessage
CreateReleaseActivity,com.ptc.windchill.esi.Part,wt.part.WTPart,0000000072,A,1,Design,00000003,7/22/2021,create,,publish Part_0001
#EndReleaseActivities
EndReleaseActivities
Attributes
#BeginReleaseActivities
BeginReleaseActivities
#CreateReleaseActivity,releaseClass,objectClass,objectNumber,objectVersion,objectIteration,objectView,targetNumber,publishDate,publishAction,containerPath,publishMessage
CreateReleaseActivity,com.ptc.windchill.esi.Part,wt.part.WTPart,0000000072,A,1,Design,00000003,7/22/2021,create,,publish Part_0001
#LoadValue,name,refType,refAtt,value
LoadValue,MyString,,,DATA|java.lang.String|New_myString4
#IBAValue,definition,value1,value2,dependency_id
IBAValue,StringIBA,StringIBA_3,,
#EndReleaseActivity
EndReleaseActivity
#EndReleaseActivities
EndReleaseActivities
Assembly:
#BeginReleaseActivities
BeginReleaseActivities
#CreateReleaseActivity,releaseClass,objectClass,objectNumber,objectVersion,objectIteration,objectView,targetNumber,publishDate,publishAction,containerPath,publishMessage
CreateReleaseActivity,com.ptc.windchill.esi.BOMHeader,wt.part.WTPart,GC000031,A,1,Design,00000003,2021-09-03,create
#EndReleaseActivity
EndReleaseActivity
#EndReleaseActivities
EndReleaseActivities
* 
Since object GC000031 is an assembly, it has two entries one for the part itself and one for the BOMheader.
3. Ensure sure that the Windchill installation has the csvmapfile.txt file in the following location.
<wt_home>\codebase\com\ptc\windchill\esi\load
4. Run the following command from Windchill shell.
windchill wt.load.LoadFromFile
-m <wt_home>\codebase\com\ptc\windchill\esi\load \csvmapfile.txt
-g create -d <path>\releaseactivity.csv
* 
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.
Est-ce que cela a été utile ?