Creating package templates

A package template is a skeletal directory containing files (such as a default configuration file and image file) that you can add to your process package. However, the package template cannot contain a process XML file.

About this task

When you create the process package, the values in the template configuration file are merged with the generated configuration file. For example, the shipped dev_process package file has a dev_template package template directory containing a dev_template.cfg configuration file and an image dev_process.gif file.

XML report definitions included in a package template are merged into the process package when it is generated.

If a process package contains a cs_reports directory with XML report definitions, those report definitions are used to create and automatically install corresponding report packages, if those report packages did not exist. If a corresponding report package exists, whether installed or not, it is ignored.

You can define a set of reports that go along with a process, and you can ensure that the reports are installed when you install the process package. This process is faster than manually installing each report.

Procedure

To create package templates:

  1. Create a directory in the following directory:

    CHANGE_APP_HOME/WEB-INF/package_templates

  2. In your newly created directory, create a valid directory structure that corresponds to the installation area. Then, ensure that this directory structure contains the files you want to merge with the process package.

    The package template configuration file name must match the package template name.


Feedback