Sun Worklist Manager Service Engine User's Guide

Defining Custom Notifications

By default, the notification feature of the WLM SE uses email to notify users of changes to tasks. You can define a custom notification method, such as invoking a web service when a tasks's status changes.

ProcedureTo Define a Custom Notification

  1. Complete the steps under Assigning Users and User Groups to a Task.

  2. If the task definition is not opened, open the file in the Task Definition Editor.

  3. Add the notification to the task, as described in To Define Automatic Notifications.

  4. Associate the notification with a task action or escalation, as described in To Associate a Notification With a Task Status Change or Escalation.

  5. In the WLM project, make a copy of EmailNotificationhandler.wsdl and rename the file.

  6. Open the WSDL file you just copied, and change the binding to the required binding type, such as HTTP or JMS, and reconfigure the binding component.


    Note –

    Do not change the operation's message type in this file.


  7. In the WLM project, open the task definition file for which you are customizing the notifications.

  8. Replace the following line:

    <import location="EmailNotificationHandler.wsdl" namespace="http://j2ee.netbeans.org/wsdl/EmailNotificationHandler"/>

    with this line:

    <import location="new-wsdl-name.wsdl" namespace="new-namespace"

    where new-wsdl-name is the name you gave to the WSDL file you copied above and new-namespace is a new namespace.

    This replaces the email binding with your custom binding, and the custom binding is invoked when a notification is triggered.