Job Notifications

This topic applies to ArcEditor and ArcInfo only.

Job notification types define the template for messages to be sent to individuals, via e-mail, after certain events have occurred in the system. Similar to activity types, these notifications are sent at events throughout the life cycle of the job. Unlike with activity types, users must be subscribed to the notification type to be able to see them. By default, these notifications happen at the following times:

Workflow Manager system notification types

Unlike activity types, notifications can be extended and easily built into your workflows using the Send Notification step type. This custom step is part of the Workflow Manager Steps library and takes a notification type as an argument.

A notification type has the following properties associated with it:

The Subscribers property is a list of e-mail addresses. Each of the above properties can contain dynamic values. These are controlled by tokens. For example, you can subscribe the current user to a particular notification even if you don't know who that person is at design time by entering the following:

[EMAILOF([SYS:CUR_LOGIN])]

For notifications to be sent, the SMTP server for the system must be configured. For more information about configuring this setting, see Workflow Manager System Settings.

Adding new job notification types

Prerequisite:

Open the Configuration manager and connect to your Workflow Manager database.

You can add new notification types that are triggered by actions in the application or triggered by workflow steps.

Steps:
  1. In the Workflow Manager Configuration Manager, navigate to the Job Notifications folder under Notifications.

    The list will show all the currently configured Notification Types. If no Notification Types exist, the list will be blank.

  2. Right-click and click Add Job Notification.

    The Notification Type Properties dialog box appears.

  3. Enter a name.

    This will be how you identify the notification type when configuring steps in the workflow.

  4. Enter a Subject.

    This will be the subject of the e-mail that is sent.

  5. Enter a Message.

    This will be the contents of the e-mail that is sent.

  6. Click to the To/From tab.
  7. Enter the Sender's E-mail and Display name.

    These fields could contain tokens for the current user at the time the notification is sent.

  8. Click Modify to add or remove subscribers or the people that receive the notification.

    Enter the e-mail address into the lower text box (separate multiple subscribers with a semicolon) or double-click a Workflow Manager User to add their e-mail address.

  9. Click OK to save changes and close the dialog box.

Using notifications in your workflows

If you have configured custom notification types for your system, you can build them into your workflows using the SendNotification custom step.

Prerequisite:

Open the Configuration manager and connect to your Workflow Manager database.

You can configure your workflow steps to send notifications when the step is executed.

Steps:
  1. In the Workflow Manager Configuration Manager, select the Step Types folder under Job Components.
  2. Right-click and click Add Step Type.

    The Step Type Properties dialog box appears.

  3. Give the step a name, description, and indicator. Leave the Hide Workflow Manager While Running check box unchecked.
  4. Select the Execution tab.
  5. Choose Custom Step Object.
  6. Browse for the CLSID/ProgID.

    The Browse for Custom Steps dialog box appears.

  7. Choose SendNotification from the Workflow Manager Steps library and click OK.
  8. In the arguments, enter the name of the notification type you would like this step to send.

    For this step type, the argument must be preceded with /notifType:

    /notifType:MyCustomNotification
  9. Verify that the argument you've entered is formatted correctly.
  10. Click OK to save the new step type and close the dialog box.
  11. Edit an existing workflow or create a new one.
  12. Click the Workflow tab.

    Your new step type appears in the step list under the Custom Step folder.

  13. Add it to the workflow and arrange the path to include the new step.

    You're now ready to create a new job and see how it works.

NoteNote:

Remember to use tokens to get runtime information about the job or current user at the time the notification is sent.

The message for the notification can contain HTML tags when HTML Notifications have been enabled in the Workflow Manager System Settings.


Published 6/7/2010