Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
WCBasicAdminGuide.pdf
Скачиваний:
71
Добавлен:
23.03.2015
Размер:
3.31 Mб
Скачать

Creating Business XML Files for Context Templates

Business XML files are used as input for create and import activities (see Methods

 

of Creating Additional Context Templates on page 396

):

Using the import from file icon requires that the business XML file and additional files (as described in Required Contents of ZIP File Used for

Importing a Context Template on page 399 be packaged in a ZIP or JAR file.

)

When using the new template icon , the business XML file can be used alone as the input when no additional content files are referenced in the business XML file, or it can be used in a ZIP or JAR file when additional content files are referenced in the XML file.

All business XML files must start with the following lines:

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE context_type SYSTEM "standardX20.dtd">

where context_type is one of the following:

OrganizationConfig for organization templates

ProductConfig for product templates

LibraryConfig for library templates

ProjectConfig for project and program templates

Required Contents of Files Used to

Create a Context Template

When creating a context template from the Templates table using the new

template icon , you must supply a file containing the content of the template. The input file can be just the business XML file if no additional content is needed or it can be a ZIP (or JAR) file that has both the business XML file and other content files named in the XML file.

The input file you provide in the create operation is not the same as the file used for importing. For a create operation, you can use a file that you manually create; however, PTC recommends that you always start with a business XML file that you have either downloaded or located in the Windchill installation directory. If you do use one of the Windchill load files as your starting point, PTC recommends that you do not modify the ENTITY tags in the file nor modify the content of any of the XML files referenced in the ENTITY tags.

The following sections describe the contents of the files you can use as input when you create context templates using the new template icon .

398

PTC Windchill® Basic Administration Guide

Organization Templates

The only option available for creating an organization template is to create the

 

input file manually and create a new template. For more information, see Create a

 

Context Template with a New Input File on page 396

.

You can include the following administrative items in a new organization

 

template:

 

Additional domains, folders, user-defined groups, and access control policy rules for the organization. The access control rules can include rules set for the dynamic roles that are available in the organization context. For additional

information, see Using Dynamic Roles on page 100

.

Additional product, library, program, and project templates that are available from the organization.

Object initialization rules.

Project roles (if the organization is used with Windchill ProjectLink).

Product and Library Context Templates

When using any of the options for creating templates, you can include the following administrative items in a new product or library template:

Domains

Folder structure (not including the folder contents)

Team roles (including role access to actions)

Team members

Document templates

Object initialization rules

Access control policy rules

Template visibility

Preferences

Program and Project Context Templates

When using any of the options for creating templates, you can include the following administrative items in a new program or project template:

Domains

Folder structure (not including the folder contents)

Folder links and structure

Project or program plan

Deliverables

Understanding Context Templates

399

Team roles (including role access to actions)

Team members

Documents

Document templates

Discussion specification

Discussion template

Object initialization rules

Template visibility

Shared objects in a project (if any have been created in an existing project that is exported)

Preferences

Additionally, you can save an existing project (or program) as a new project (or program). Using this option creates a duplicate of a project (or program) under a new name.

ZIP File Contents of an Exported Context

Template

The ZIP file created on your system from an Export as Template action contains the framework options you selected. Depending on your system configuration, you may be prompted to save the ZIP file or the file may be saved on your local drive with the name <context_name>_generated_

template<integer>.zip where <context_name> is the name of the , product, library, program, or project being exported and <integer> is an integer

that ensures that the file has a unique name when the download occurs. The name used is not significant and can be changed.

The ZIP file contains the following:

The importList.txt file, which is not currently used during an import and can be ignored.

The TAG-ContainerTemplate_<integer>.xml file, which contains information about container template itself, such as name and container class of the template. Here also, <integer> is used to ensure that the files are unique.

The TAG-0.xml file (which is in the CONTENTS directory) lists the contents

400

PTC Windchill® Basic Administration Guide

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]