Mark as Valid Template
Explanation
This activity is used to change the status of a Company Template from Invalid to Valid.
Information about the status of a Company Template:
- When a template is created, during fresh installation/upgrade or by using the import of a template file, the
component versions defined in the template are required to correspond to the registered component versions.
If this is not the case, then the processing will follow these guidelines:
- If a Company Template already exists, with incorrect (non-compatible and typically older) component
versions, then no data will be imported for any incorrect components. All errors will be logged. This template
is an invalid template from the start.
- If the Company Template does not exist then it will be imported, even if the component versions in the
template do not correspond to the registered component versions. The same applies if just one component of an
existing Company Template is installed/imported where the component version in the file differs from the
registered version. The template will be marked as Invalid.
- After installation or import, all successfully created Company Templates will be marked as Valid. A template
is valid with respect to the component version registered in the template for each one of the components.
- When a new release of a component is installed, then this new version will be registered in Component
Registration. During the registration all existing templates will also be checked in order to find templates
containing this component but with another version than the one just registered and all found templates will be
marked as Invalid.
Thus, after having performed an upgrade, you may find that some of the templates are not valid. This means that
an invalid template consists of data related to component versions other than those currently installed. This
activity makes it possible to change the status of a Company Template from Invalid to Valid. By doing this, the
template can be used as a source for the Create Company process.
Prerequisites
Templates that are not active must be available in the database.
System Effects
- An invalid Company Template will be modified such that all components in the template gets the version
according to registered data in Component Registration.
- Even if the Company Template has been marked as valid and has component versions corresponding to installed
component versions, the data in the template might be inconsistent with the current Business Logic.