Activity Graph Service Prerequisites

12-10 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter For example, the user-connect similarity calculation defines the following two reason strings: reason-user-connect=You share {NUMBER_OF_ITEMS} connections with {RECOMMENDED_ ITEM}. reason-user-connect=You share {NUMBER_OF_ITEMS} connection with {RECOMMENDED_ ITEM}. To customize reason strings for similarity calculations: 1. Open the UIBundle.properties file. 2. Locate the reason string that you want to customize and edit it as required. 3. To create a new reason string, use the following format: reason-similarity-calculation=string 4. Save the UIBundle.properties file.

12.6 Managing Activity Graph Schema Customizations

WebCenter provides out-of-the-box integration with the Activity Graph service that includes metadata definitions for mapping WebCenter service event data from Analytics. This metadata is automatically loaded the first time the Activity Graph engines application starts. You can extend Activity Graph metadata to change how actions are gathered from Analytics by manipulating XML files. To work with the metadata, you must first export the data to an XML file. After editing the XML files, you can then import the metadata back into the Activity Graph service. This section includes the following subsections: ■ Section 12.6.1, Exporting Activity Graph Metadata ■ Section 12.6.2, Exporting Provider Configuration ■ Section 12.6.3, Importing Activity Graph Metadata ■ Section 12.6.4, Deleting Activity Graph Metadata ■ Section 12.6.5, Renaming Actions and Node Classes For information about the ways you can extend Activity Graph metadata, see the section Extending the Activity Graph Service in the Oracle Fusion Middleware Developers Guide for Oracle WebCenter.

12.6.1 Exporting Activity Graph Metadata

Use the WLST command exportAGMetadata to export Activity Graph metadata definitions to an XML file. For command syntax and examples, see the section exportAGMetadata in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. For example: exportAGMetadataappName=’activitygraph-engines’, directoryPath=’scratchmonty’, definitionFileName=’activityGraphMetaData.xml’, includeProviderConfigurations=1 Managing the Activity Graph Service 12-11 For information on how to run WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands.

12.6.2 Exporting Provider Configuration

Use the WLST command exportAGProviderConfiguration to export provider configuration metadata, for a given provider, to an Activity Graph metadata definition file. For command syntax and examples, see the section exportAGProviderConfiguration in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. For example: exportAGProviderConfigurationappName=’activitygraph-engines’, directoryPath=’scratchmonty’, definitionFileName=’activityGraph-analytics-mappings.xml’, urn=’oracle.webcenter.activitygraph.analytics’ For information on how to run WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands.

12.6.3 Importing Activity Graph Metadata

Use the WLST command importAGMetadata to import Activity Graph metadata definitions from an XML file. For command syntax and examples, see the section importAGMetadata in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. For information on how to run WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands.

12.6.4 Deleting Activity Graph Metadata

Use the WLST command deleteAllAGMetadata to delete all the Activity Graph metadata that is defined for a WebCenter application. You should use this command in conjunction with the WLST command importAGMetadata to completely reinstall Activity Graph metadata. For command syntax and examples, see the section deleteAllAGMetadata in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. You can delete metadata for individual Activity Graph objects using the WLST command indicated: ■ Node class deleteAGNodeClass ■ Action deleteAGAction ■ Similarity calculation deleteAGSimilarityCalculation ■ Rank calculation deleteAGRankCalculation ■ Provider assignment deleteAGProviderAssignment ■ QRPP deleteAGQRPPRegistration Note: You should use this command only if you plan to import a new set of metadata.