Creating the Resolver Class

Managing Notification Templates 3-5 The params parameter is the map that has the base values, such as usr_key and obj_key, required by the resolver implementation to resolve the rest of the variables in the template. Sample code: HashMapString, Object resolvedData = new HashMapString, Object; resolvedData.putshortDate, new Date; resolvedData.putlongDate, new Date; String firstName = getUserFirstnameparams.getusr_key; resolvedData.putfname, firstName; resolvedData.putlname, lastname; resolvedData.putcount, 1 million; return resolvedData;

3.1.2 Deploying the Notification Event

To deploy the notification event:

1. Upload the event metadata XML file to the Meta Data Store MDS. Oracle Identity

Manager provides utilities to exportimport data to and from MDS repository. See MDS Utilities and User Modifiable Metadata Files in the Oracle Fusion Middleware Developers Guide for Oracle Identity Manager for information about the MDS utilities.

2. Upload the JAR file containing the resolver class to Oracle Identity Manager

database. Utilities are available in the OIM_HOMEbin directory for uploading resource bundles and JAR files to Oracle Identity Manager database. See Upload JAR and Resource Bundle Utilities in the Oracle Fusion Middleware Developers Guide for Oracle Identity Manager for information about the upload resource bundles and JAR utilities.

3.2 Creating a Notification Template

To create a notification template:

1. Log in to the Administrative and User Console. Navigate to Advanced

Administration.

2. Click the System Management tab, and then click the Notification tab.

3. From the Actions menu on the left pane, select Create.

4. On the Create page, enter values for the following fields under the Template

Information section: ■ Template Name: Enter the template name in this field. ■ Description Text: Enter a brief description of the template in this field. Note: Corresponding to each event that happens, you have to configure an XML file. The XML file defines the behavior of each event. You must first configure the XML for an event. After this is done, you can create a notification template for that event. For information about creating the event XML file, see Defining Event Metadata on page 3-2. 3-6 Oracle Fusion Middleware Administrators Guide for Oracle Identity Manager 5. Under the Event Details section, perform the following: ■ From the Available Event list, select the event for which the notification template is to be created from a list of available events. Depending on your selection, other fields are displayed in the Event Details section. ■ In the Resource field, select a resource from the lookup. This is the dynamic data defined by the Param DataType element in the XML definition. For more information about this element, see Defining Event Metadata on page 3-2. 6. Under the Locale Information section, enter values in the following fields: ■ To specify a form of encoding, select either UTF-8 or ASCII. ■ In the Message Subject field, enter a subject for the notification. ■ From the Type options, select the data type in which you want to send the message. You can choose between HTML and TextPlain. ■ In the Short Message field, enter a short version of the message. ■ In the Long Message field, enter the message that will be sent as the notification. See step 7. 7. To use the token for available data in the messages that will be sent as notification: a. Select the attribute from the list. This attribute will be displayed in the Selected Data field. b. Copy the attribute and add it in the message text by placing it inside {}. For example, if selected data is FA_Territory, then include it in the text as {FA_Territory}. Figure 3–1 shows the Create Notification Template page with sample values: Figure 3–1 The Create Notification Template Page Note: The Description Text field cannot be translated and is available only in English. Note: The Default Locale information is stored in the PTY table and is fetched from there.