Prerequisites
- Last UpdatedJun 20, 2024
- 3 minute read
The Prerequisite option in the Add to Package Template page allows you to define the prerequisites for the Package Template. If the Package Template is dependent on other Package Templates, then the dependent Package Templates can be set as prerequisites.
For example: If the 'Leave' package is dependent on the 'HR' package, then the 'HR' package can be set as a prerequisite for the installation of the 'Leave' package.
You can modify prerequisites by editing the Package Template before it is published.
To set prerequisites
-
Select and right-click the artifact that you want to package, and then click Add to Package Template on the shortcut menu. The Select Package Template page appears.
-
Select the Package Template.
-
Select Package Template Version, Include Associated Artifacts, Include Child Artifacts, Include Security Artifacts, and Include the automatically generated SQL Script.
-
Click Next. The Add to Package Template page appears.
-
In the Configuration section, click Prerequisite. The Prerequisite page appears on the right pane.
-
From the Package Template list, select the package template that you want to set as the prerequisite.
-
Select the version of the package template from the Package Template Version list. The version defaults to 1.
-
Select the Consider Higher Versions if selected version does not exist in target environment option. This will ensure that the higher versions of the prerequisite package template are considered while installing the package in the target environment, if the selected version is not found.
If this option is not selected, then while installing the package in the target environment only the exact version of the prerequisite will be considered. If the selected version does not exist, the package will not be installed.
-
Click Add Template.
-
Repeat Steps 6-9, to add more package templates as prerequisites.
The grid in the Package Template page lists out all the Package Templates which are set as prerequisites.
-
Click Save Settings.
The Prerequisite Package Templates grid contains the following details:
-
Name: This column displays the name of the Package Template that is set as a prerequisite.
-
Version: This column displays the version number of the prerequisite package template.
-
Higher Versions: This column displays either Yes or No.
-
Yes appears if the Consider Higher Version check box is selected.
-
No appears if the Consider Higher Version check box is not selected.
Note: The Prerequisite Package Templates grid also appears when you select the following options:
- Enterprise Console > Package > Manage Package > Edit > Prerequisite
- Enterprise Console > Package > Manage Package > View > Prerequisite
- Enterprise Console > Package > Manage Package > Install
-
-
-
Click Save Template.
The package template settings are saved.
To delete a prerequisite package template
Perform the following to delete a package template that is set as a prerequisite.
-
From the Prerequisite Package Templates grid in the Prerequisite page, click the
icon in the row corresponding to the package template that you want to delete.
The corresponding prerequisite package template is deleted successfully.