Setting Subscription Defaults Setting Up Default Subscription Preferences

18-8 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter

18.2.1 What You Should Know About Connection Types

The Notifications connection type determines the messaging channels that are available to users when they configure their own messaging preferences for Notifications in WebCenter Spaces. Use one of two possible connection types: ■ BPEL Server provides three messaging channel options to users: mail, texting SMS, and Worklist ■ Mail Server delivers notification messages exclusively through a mail server that is configured for the WebCenter Spaces application Selection of a BPEL server presupposes that you have established a connection with a BPEL server in which the User Messaging Service UMS is available. For information about connecting to a BPEL server, see Chapter 22, Managing the Worklist Service. When the WebCenter Spaces application has setSpacesWorkFlowConnectionName set up, the Manage Configuration button becomes available on the Messaging panel in the WebCenter Spaces Preferences dialog. Selection of a mail server presupposes that you have established a connection with a mail server. Additionally, the external application associated with the mail server connection must contain shared credentials. For information about connecting to a mail server, see Chapter 17, Managing the Mail Service. When Mail Server is the selected connection type, the Manage Configuration button on the Messaging panel in the WebCenter Spaces Preferences dialog may or may not be grayed-out. This depends on whether you have set up spacesWorkFlowConnection. But, regardless, when Mail Server is the selected connection type, if clicking the Manage Configuration button for Messaging preferences opens User Messaging Preferences, any changes you make are ignored.

18.2.2 Notification Prerequisites

Before you can define a connection type for Notifications, you must take the steps and consider the information provided in the following subsections: ■ Section 18.2.2.1, Installation ■ Section 18.2.2.2, Configuration ■ Section 18.2.2.3, Security ■ Section 18.2.2.4, Limitations

18.2.2.1 Installation

Installation requirements associated with Notifications change according to the type of connection you plan to select for Notifications messaging. Tip: It is expected that the same connection you use for setSpacesWorkFlowConnectionName is used for Notifications, provided you use the BPEL Server for notifications. See Also: For more information, see the section, Establishing and Managing Your Messaging Channels and Filters, in Oracle Fusion Middleware Users Guide for Oracle WebCenter. Managing Subscriptions and Notifications 18-9 If you plan to use the User Messaging Service UMS through your BPEL connection for Notifications messaging, you should know that only the mail driver is installed by default. To make use of SMS and Worklist messaging channels, you must install drivers for these as well. For information about installing SMS and Worklist drivers for UMS, see the chapter Configuring Oracle User Messaging Service, in the Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle Business Process Management Suite. If you plan to use the Mail service for Notifications messaging, no Notifications-specific installation is required, but the Mail service must be configured as described in Chapter 17, Managing the Mail Service.

18.2.2.2 Configuration

Configuration prerequisites for Notifications also depend on the connection type you plan to select for Notifications messaging. If you plan for users to have messaging channel options—mail, texting SMS, and Worklist—a connection to a BPEL server must be in place. Notifications uses the SOA installation for supporting multichannel notifications through the User Messaging Service UMS. UMS is installed as a part of the SOA domain. Out of the box, only the email driver is configured. The SMS driver is available, but must be deployed. For the Worklist channel, the SOA domain must be extended through the Worklist driver extension template. For more information see Chapter 22, Managing the Worklist Service, and the chapter Configuring Oracle User Messaging Service, in the Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle Business Process Management Suite. If you plan that users will always and only be notified through their mail, a connection to a mail server must be in place. Additionally, the external application associated with the mail server connection must contain shared credentials. For more information, see Chapter 17, Managing the Mail Service.

18.2.2.3 Security

There are no security considerations specifically associated with Notifications.

18.2.2.4 Limitations

UMS supports multiple messaging channels, including voice and instant messaging, that are not also supported by Notifications. From UMS, Notifications consumes only mail, SMS, and Worklist.

18.2.3 Setting the Connection Type for Notifications Using Fusion Middleware Control

To specify a Notifications message connection type with Fusion Middleware Control: 1. Log in to Oracle Fusion Middleware Control and navigate to the home page for WebCenter Spaces. For more information, see Section 6.2, Navigating to the Home Page for WebCenter Spaces.

2. From the WebCenter menu, choose Settings Application Configuration.

3. On the Application Configuration page, scroll down to Notifications at the

bottom of the page, and select a connection type to use for outbound notifications: either BPEL Server or Mail Server. 4. The next step depends on the selected connection type: 18-10 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter If you select BPEL Server: a. From the Connection Name list, select the name you provided for the BPEL server when you set up that connection.

b. In the Sender Mail Address field, enter a mail address from which all

Notifications messages are sent. The sender mail address must match at least one driver that is configured to send messages from a corresponding domain.

c. In the Sender SMS Address field, enter the four- to six-digit number that is

used by the User Messaging Server UMS as the driver from which all Notifications messages are sent. The sender SMS address must match at least one driver that is configured to send messages from a corresponding domain. If you select Mail Server, select a mail connection from the Connection Name list. 5. Save your changes. 6. Restart the managed server on which the portal application is deployed to make your configuration changes take effect.

18.2.4 Setting the Connection Type for Notifications Using WLST

Use the WLST command setNotificationsConfig to configure the connection type used for notifications. For command syntax and examples, see the section, setNoticationsConfig, in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. See also, getNotificationConfig, in the same guide.

18.3 Creating and Applying Custom Notification Templates

The notification messages that users receive through Worklist or Mail have a default format for content and content presentation. As the application administrator, you can instead create and apply custom templates to provide your own formats for notification messages. This section provides information about creating a custom template for notifications messages. It includes the following subsections: ■ Section 18.3.1, What You Should Know About Overwriting Default Notification Templates ■ Section 18.3.2, Overwriting a Default Notifications Template

18.3.1 What You Should Know About Overwriting Default Notification Templates

You can go through MDS using WLST commands to customize the layout and content of subscription-based notification messages by overwriting the files See Also: For information about how to run WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands. Note: Updates to this configuration are stored in the MDS repository. For configuration changes to take effect, you must restart the managed server on which the application is deployed. For more information, see the section, Starting and Stopping WebLogic Managed Servers Using the Command Line in the Oracle Fusion Middleware Administrators Guide. Managing Subscriptions and Notifications 18-11 defaultTemplate.xml and defaultTemplate_rtl.xml—when right-to-left language support is required. You can create your own version of these xml files, editing the CSS styles for tables label, value, background and footers note. You can move such tags as payload and group-space-footer to change the layout. To modify the content of these tags, you can edit the CDATA section within html-format. Note that the tag text-format should always be present and empty. You can use the tag custom to add additional content, where the enclosed html-format with CDATA contains the new HTML content and text-format remains empty. Example 18–2 and Example 18–3 illustrate the default content of notification message template files. You can use these to formulate your custom files. Example 18–2 Default File defaultTemplate.xml ?xml version=1.0? notification-template xmlns=http:xmlns.oracle.comwebcenternotification -- The CSS Style of the Notification -- style text-format html-format [CDATA[ style type=textcss .title {font-size:1.2em; font-weight:bold; white-space:nowrap;} .label {text-align:right; margin-left:30px; padding-right:10px; white-space:nowrap;} .value {text-align:left; margin-right:20px; padding-left:10px; white-space:nowrap; width:100;} .note {font-size:0.8em; color:999999} .background {background-color:fcfcfc} style ]] html-format style -- The Subject line of the Notification -- subject message-keyNOTIFICATION_SUBJECTmessage-key subject group-space-subject message-keyGROUP_SPACE_SUBJECT_SUFFIXmessage-key group-space-subject -- Actual srvc-specific data. ProvidedOverridden by srvc template -- payload text-format html-format See Also: For information about running WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands. Note: The default content of these files is very similar. The differences appear under the style tag, where alignment—either right or left—is specified.