Delete Loader for a Context Template
You can context template using a loader only in the development environment. This loader file is located in <Windchill> folder and is run from Windchill shell. The loader can be run in two modes:
1. ALL — All iterations of the context template are deleted.
2. LATEST_ITERATION — Only the latest iteration of the context template is deleted.
Example of the loader file is as illustrated below
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standard12_1.dtd">
<NmLoader>
<csvDeleteContainerTemplate
handler="wt.inf.template.LoadContainerTemplate.deleteContainerTemplate">
<csvname>prod_site</csvname>
<csvcontainerClassName>wt.pdmlink.PDMLinkProduct</csvcontainerClassName>
<csvparentContainerPath>/</csvparentContainerPath>
<csvdeleteOption>ALL</csvdeleteOption>
</csvDeleteContainerTemplate>
</NmLoader>
Command to run the loader from Windchill shell is:
windchill wt.load.LoadFromFile -d site.xml -u wcadmin -p wcadmin -CONT_PATH /
Exception is thrown and methodserver logs are generated and the template is not deleted successfully when:
• Template is already in use in the system.
• Template is checked out.
Logs are printed when a template matching the attributes supplied to the loader is not found. For example when csvparentContainerPath is incorrect, container template is not present in the system, value for csvdeleteOption is incorrect and the value for csvcontainerClassName is incorrect.
Deploy Customization on Development Environment
Prepare CCD Package for Promotion
For information on the CCD process for promotion, see
Deploying Code and Configuration Package.