Adding custom attributesYou can add, update, or search custom attributes. These attributes can be defined in a review template or review. Attributes can also be used to search templates and reviews. By default, custom attributes are stored in the rca_custom_attribute table. The table stores the data in a key-value pairs and therefore, you can choose to store these attributes in a user-specific schema. To enable the attributes, custom processes are used. The building block provides following configuration parameters for the Review Commenting & Approval Core service:
You can create a custom attribute called Release that can have values such as ES, ES2, or ES2.5 in a user-defined table named ReviewRelease . The first step is to create a table in the database. For example, use the following SQL command: CREATE TABLE `adobe9`.` ReviewRelease ` ( `reviewId` varchar(64) NOT NULL default '', 'release` varchar(16) default NULL, PRIMARY KEY (`reviewId`) After creating the table, you can add custom attributes when you initiate a review template. Custom attributes are key-value pairs as shown in the following Flex code: var customAtt1:CustomAttribute = new CustomAttribute(); customAtt1.attrKey = "Type"; customAtt1.attrValue = _TypeMetadata; var customAtt2:CustomAttribute = newCustomAttribut e(); customAtt2.attrKey = "Version"; customAtt2.attrValue = _VersionMetadata; var tsf : TemplateSearchFilter = new TemplateSearchFilter(); tsf.customAttributes.addItem(customAtt1); tsf.customAttributes.addItem(customAtt2); |
|
// Ethnio survey code removed