To define a custom ID generator, you must write a Java class that implements the com.unicacorp.uap.project.helper.PidGenerate interface. Within the template definition, you can then specify your Java class name as the value for pidGenClass attribute and any desired prefix to append to that generated ID using the pidprefix attribute.In a similar manner, you can also define custom routines to validate attribute values of a project, plan or program. To define a custom validation routine, you must write a Java class that implements the following interface: com.unicacorp.uap.common.template.IdValidate.
To do this, perform the following steps:
1. Create a custom Java implementation named CustomComponentPidGenerateImpl.java.
This implementation uses a file, IDRange.properties, to hold the minimum and maximum values for the custom IDs.
It uses a database table, CUST_GENIDS, to hold the current value of the custom ID for each object type that uses the class to generate custom IDs.
2. Compile the class. The compiled class is named CustomComponentPidGenerateImpl.class.
3.
4. Create a file named IDRange.properties, and add the following text to this file:
5. Copy this file to the \unwar\WEB-INF folder under your Unica Marketing Operations installation.
6. Using your database management program, create a table named CUST_GENIDS, with the following columns:
9. In the ID Generation Class field, specify the custom class using the fully qualified class name or the canonical name, as shown here:
Marketing Operations
8.5.0
|
Copyright IBM Corporation 2011. All Rights Reserved.
|
For more information, see our support and community site: Customer Central
|
|