1. Home
  2. Docs
  3. Chapter 23. Document Production
  4. 3. Doc. Composer Build-from-Scratch mode
  5. Managing element templates in team environment

Managing element templates in team environment

Download PDF

If your team is using Visual Paradigm Online or Teamwork Server as collaborative modeling solution, you can share element templates among team members with the built-in management and synchronization features. Doing so allows the entire team to compose document based on a common set of element templates. Besides, this ensures the completeness of document when being viewed in any member’s environment because all members have access to the same and most updated templates needed by the documents.

In server, element templates are stored in repository based. This means that all of your projects managed under the same repository have access to the same set of element templates. In this page, you will learn how to manage those element templates and share them among team members.

Managing element templates

Manage element templates is the process to create, edit or delete element templates stored in repository. Once you have made the desired changes in Visual Paradigm locally, you can synchronize the changes to server. Teammates can get the updated templates by synchronizing changes to server as well.

As said earlier, element templates are stored in repository based. Therefore, no matter which project you have opened, you are managing the same set of element templates.

To manage element templates:

  1. In Visual Paradigm, select Tools > Doc. Composer > Manage Template XMLs… from the toolbar. In order to access the management function, make sure you are opening a team project managed under either Visual Paradigm Online or Teamwork Server. Besides, make sure you are a team member and have been granted the right to Change document template in server. You may need to contact your server administrator to confirm the permission settings made in server.
  2. Now, you can manage element templates in the Manage Template XML window. Read the next section for details about what you can do in the Manage Template XML window.

Overview of Manage Template XML window

Overview of Manage Template XML window

No. Name Description
1 Type of project data Different templates are available for different project data. The drop-down menu there divide project data into four main types:

Project – The entire project. You will see element templates mainly for querying details of diagrams in project.

Diagram Type – The available types of diagram. (e.g. Use Case Diagram, Business Process Diagram)

Model Type – The available types of model elements. (e.g Use Case, Class)

General – Mainly for listing legacy or obsolete element templates. Normally you don’t need to deal with templates under General section.

2 Show all Visual Paradigm supports a large volume of model elements, but not all of them are well known or meaningful. By default, we hide away those elements that aren’t popular. If you need to edit their templates you can check Show all to reveal them.
3 Filter Filter the items to be displayed in element list.
4 List of elements The elements that support template editing. If you have chosen to list Diagram Type (in Type of project data), you will see a list of diagram here. If you have chosen to list Model Type, you will see a list of model elements here.
5 List of templates A list of element templates available for the element selected in the list of elements. Each type of project data has its own set of element templates. Take Use Case Diagram as example, you have templates like Basic, Details, Project Management, etc. With a different selection of element, a different list of element templates will be presented.
6 Background information Background information of an element template. Note that you can only edit background information of a user-defined template, but not any built-in template. Here is a description of properties you can set:

Name: The name of the element template, which is the name that shown under the Element Template Pane.

Icon: An icon that best represent the layout of content that will be produced by using this template.

Set as Default Template: Check this option if you want Doc. Composer to apply this template automatically when dragging elements directly from Diagram Navigator / Model Explorer onto document.

Template content: Editor for programming the template.

7 XML Editor Customize your template in the XML editor. Again, you can only edit a user-defined template, but not any built-in template.
8 Validate  Validate the XML against the built-in XML schema.
9 Export XML Schema Export the XML schema (*.xsd) for validating the XML template content.
10 Save Save the modifications made in XML editor.

 

Creating a template

To simplify the programming of template, you are suggested to duplicate an existing template and start editing it, rather than do everything from scratch. Target on a template that gives the closest outcome to what you want to show in document. If you want to start from an empty document, select any templates.

  1. Select the type of element to create template. For example, select Use Case Diagram if you want to create a template to list specific shapes in use case diagram. You can select project / diagram type / model element type.
    Selecting a use case diagram
  2. Right click on an element template and select Duplicate… from the popup menu.
    Duplicate a template
  3. Enter the name of the new template.
    Naming a template
  4. Choose an icon that represents the presentation of content output with your template.
    Choosing an icon for a template
  5. Check Set as Default Template if you want Doc. Composer to apply this template automatically when dragging elements directly from Diagram Navigator / Model Explorer onto document.
  6. Compose the template in XML editor. If part of your template references content written in another element template, you can click + to add a reference to that template. Click here for details about template referencing.
    Editing a template in XML editor
  7. Click Save when finished editing. Now, you can use the new template in your document. You can also share it with teammates.

Deleting a template

Right click on an element template and select Delete… from the popup menu to remove it. Note that this action cannot be undone. Moreover, documents that used a deleted template in content will have the missing parts be replaced by <empty> tag(s). This may severely affect the completeness of your document so think twice before you delete a template. Make sure the template is not currently in-used by any document, or the documents that use the templates are not important anymore.

To delete a template

Note: You can only delete a user-defined template.

Modifying a template

Click on the template in the list of template list and then modify it in XML editor. Click Save when finished editing. When finished, you can refresh your document to apply the changes.

Synchronizing element templates

Once you have finished editing element templates, you can synchronize the changes to server. Teammates can get the updated templates by synchronizing changes to server as well.

To synchronize changes to server manually, select Tools > Doc. Composer > Sync. to VP Online/VP Teamwork Server from the toolbar.

Note that your changes will be synchronized automatically when you perform commit.