Amministrazione di base > Gestione dei dati > Amministrazione dei modelli di contesto > Understanding Context Templates > Required Contents of ZIP File Used for Importing a Context Template
Required Contents of ZIP File Used for Importing a Context Template
The ZIP file you use to import a context template must have the same basic structure as the ZIP created when exporting a context template (as described in the previous section). The ZIP file must contain the following:
An XML file at the top level of the ZIP that contains the definition of the context template itself, such as name and container class of the template. This corresponds to the TAG-ContainerTemplate_<integer>.xml file that is generated in an export. For more information on the content of this file, see Contents of Top-level XML File for Imported Templates.
The business XML file (which is defined as coming from the CONTENTS directory) that lists the contents of the template you want to import and contains information that is used when creating a container from this template (for example, folder structure, access control policy rules, and so on). This is also known as the TAG-0.xml file that is generated on export. The name of this file must match the file named in the zipEntry element in the top-level XML file. For more information on the content of the business XML file, see Creating Business XML Files for Context Templates.
Additional files to include in the contents of the template you want to import. These files are named in the business XML file to be added as content items through the use of the contentItem element. Before creating the ZIP file, put these files in the CONTENTS directory. Examples of files that can be in this directory are documents and document templates that you want to import as part of a Windchill ProjectLink project template.
* 
The file used could also be a JAR file rather than a ZIP file.
* 
The ZIP file created by selecting the Download action from the right-click actions menu of a context template row on the Templates table cannot be used as the template data file for creating a context template using the import from file icon ; it does not contain all of the required information that is needed to create a new context template. The downloaded ZIP file can be used to update an existing context template or create a template using the new template icon .
È stato utile?