Use custom validations for OOTB fields
Available in versions: PPM 10.0.3 and later
The validations used by OOTB PPM fields (delivered with the product) are predefined and cannot be modified. Starting from 10.0.3, you can use custom validations for some OOTB fields.
Fields that support custom validations
You can use custom validations for the following OOTB fields:
Field | In PPM page |
---|---|
Resource Pool |
The Add Position dialog box The new UI of the staffing profile page |
Region | |
Project Type | The Create New Project page |
Include Proposals | The Add Specific Items section of the Add New Program Content page |
Include Projects | |
Include Assets |
Alternatively, to get the list of fields that support custom validations, you can also refer to the validations.conf file in the <PPM_HOME>/conf/validations/seed directory.
Configure OOTB fields to use custom validations
You can replace the validation of an OOTB field with your custom validation.
To configure an OOTB field to use a custom validation:
- Open the validations.conf file in the <PPM_HOME>/conf/validations/seed directory to obtain the system validation used by the target OOTB field.
-
In the Validation Workbench, copy the system validation used by the target OOTB field, and make necessary changes to the copied validation. You can also create a new validation for the OOTB field. For details on how to copy and create a validation, see Configure validations.
Note down the reference code of the copied validation or the custom validation.
Caution: The validation used by the OOTB field is tied to workflow logic, keep in mind the following when configuring the custom validation. Otherwise, using the custom validation can invalidate a process.
- The custom validation must use the same component type as the system validation.
- The results returned by the custom validation must be a subset of the results returned by the system validation.
-
Open the validations.conf file in the <PPM_HOME>/conf/validations/seed directory, and copy the key used by the target OOTB field.
The key defines which validation the OOTB field uses.
-
Paste the key to the custom_validations.conf file located in the <PPM_HOME>/conf/validations/custom directory.
Note: The first time you configure an OOTB field to use a custom validation, in the PPM_HOME>/conf/validations/custom directory, copy the custom_validations.conf.example file to the same directory and rename the copied file custom_validations.conf.
-
In the custom_validations.conf file, assign the custom validation to the key used by the OOTB field by using either of the following methods:
Option Example (Recommended) Assign the validation reference code to the key staffing.profile.position.resource.pool.acl=RSC_ENABLED_RESOURCE_POOLS_enhanced
Assign the validation ID to the key staffing.profile.position.resource.pool.acl=32793
You can query the database to get the validation ID.
We recommend that you use the reference code because the validation ID may change when you export a validation from one environment to another, for example, from the test environment to the production environment.
-
Save the custom_validations.conf file.
We recommend that you back up the custom_validations.conf file every time after you modify it.
-
If your PPM system is deployed in a server cluster configuration, copy the custom_validations.conf file to each of the nodes in the cluster.
-
Restart the PPM server.
Note: If the VALIDATION_CUSTOMIZATION_RELOAD_ENABLED parameter is set to true, the custom validation is enabled for the system field without restarting PPM.
Setting this parameter to true may have an impact on the performance. We recommend that you set this parameter to false after you finish the configuration.
See also: