Workflow Manager のライセンスで利用可能。
Job notification types define the template for messages to be sent to individuals, via email, after certain events have occurred in the system. Similar to activity types, these notifications are sent for events throughout the life cycle of the job. Unlike activity types, users must be subscribed to the notification type to be able to see them. In addition to the message, you can include all job attachments as part of the email sent with notifications. Notifications are sent at the following times by default:
- Job is assigned or reassigned
- Job created
- Job cloned
- Job closed
- Dependency added
- Hold released
- Hold added
- Extended properties updated
- Step execution completed
- Workflow updated
- Workflow committed for execution
- Step completed
- Attachment added
- Attachment deleted
- Dependency deleted
- Job properties updated
- Area of interest updated
- Version created
- Current step set
- Step assigned or reassigned
- Step started
- Step set as current job step
- Notes updated
- Linked (1-M) property added
- Linked (1-M) property deleted
- Linked (1-M) property updated
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 (Classic) Steps library and takes a notification type as an argument.
A notification type has the following properties associated with it:
- Name
- Subject
- Message Body
- Include Job Attachments
- Sender Email
- Sender Display Name
- Subscribers
The Subscribers property is a list of email 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 (Classic) system settings. The attachment size limit is based on your mail server settings.
Add new job notification types
You can add new notification types triggered by actions in the application or by workflow steps.
- Start ArcGIS Workflow Manager (Classic) Administrator and connect to your Workflow Manager (Classic) database.
- Expand Notifications.
- Right-click Job Notifications and click Add Job Notification.
The Notification Type Properties dialog box appears.
- Provide a name for the notification in the Notification Type Name text box.
- Provide a subject for the email notification in the Subject text box.
- Provide the email message that will appear using tokens as necessary in the Message text box.
- Check the Include Job Attachment check box to send all the job's attachments with this notification.
- Click the To/From tab.
- Enter the sender's email address and display name in the Sender Email and Sender Name text boxes.
These fields can also contain tokens for the current user at the time the notification is sent.
- Click Modify to add or remove subscribers to the list of people that will receive the notification.
The Select Subscribers dialog box appears.
- Enter email addresses in the text box (separate multiple subscribers with a semicolon) or double-click a Workflow Manager (Classic) user to add their email address.
- Click OK to save the changes and close the Select Subscribers dialog box.
- Click OK to save the notification.
Manage subscribers for notification types
You can manage subscribers for existing notification types.
- Start Workflow Manager (Classic) Administrator and connect to your Workflow Manager (Classic) database.
- Expand Notifications and click Job Notifications.
- Select the notification type for which you want to manage subscribers in the right panel.
ヒント:
Hold the Shift key as you click to select multiple notifications in the right panel.
- Right-click the notification and click Edit Item.
- Click Modify to add or remove subscribers to the list of people that will receive the notification.
The Select Subscribers dialog box appears.
- Enter email addresses in the text box (separate multiple subscribers with a semicolon) or double-click a Workflow Manager (Classic) user to add their email address.
- Click OK to save the changes and close the Select Subscribers dialog box.
- Click OK to save the notification.
Use notifications in workflows
If you have configured custom notification types for your system, you can build them into your workflows by setting a notification as part of a step property or using the SendNotification custom step.
Use notifications as a property of a step
You can configure your workflow steps to send notifications when the step is executed.
- Start Workflow Manager (Classic) Administrator and connect to your Workflow Manager (Classic) database.
- Expand Job Components > Workflows.
- Right-click Workflows and click Add a Workflow, or right-click a workflow and click Edit Item.
- Click the Workflow tab.
- Right-click the step to which you want to add a notification and click Properties.
The Detailed Step Properties dialog box appears.
- Click the Step Notifications drop-down arrow and choose the notification type you want sent after this step is executed.
- Click OK to save changes to the step properties.
- Click OK to save changes to the workflow.
Use notifications as a step type
You can configure your workflow steps to send notifications when the step is executed.
- Start Workflow Manager (Classic) Administrator and connect to your Workflow Manager (Classic) database.
- Expand Job Components.
- Right-click and click Add Step Type.
The Step Type Properties dialog box appears.
- Provide basic step information in the Step Type Name and Description text boxes.
- Click the Indicator drop-down menu and choose a shape for the step type.
- Leave the Hide Workflow Manager While Running check box unchecked.
- Click the Execution tab.
- Choose Custom Step Object.
- Click the CLSID/ProgID browse button (...).
- The Browse for Custom Steps dialog box appears.
- Expand All Platforms, click Send Notification, and click OK.
- Type /notifType:<notification name> in the Arguments text box.
- Click Validate Argument Names to verify that the argument you've entered is formatted correctly.
- Click OK to save the step type.
- Right-click Workflows and click Add a Workflow, or right-click a workflow and click Edit Item.
- Click the Workflow tab.
The new step type appears in the step list under Custom Step.
- Add the step to the workflow and add a path to include the new step.
- Click OK to save the workflow.
You're now ready to create a new job and send a notification.
注意:
You can use tokens to get the information about the job or current user at runtime, when 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 (Classic) system settings.