Creating Mail Notification Activity

This section covers the following topics:

Creating Mail Notification Activity

In the Adeptia Suite, Notification is used to send mail to users about the execution status of a process flow. You can add the Mail Notification activity anywhere in the process flow. You can add more than one Mail Notification activities in a process flow.
The Mail Notification activity is of two types:

  • User Defined Message: This type of mail notification is used to send custom email message to any user during execution of a process flow. Any file can be attached to the mail.
  • Process Flow Summary: This type of mail notification is used by the Adeptia Server to dynamically send summary of a process flow execution.

Creating Notification to Send User Defined Message

Prerequisites

Steps to create User Defined Message Notification

  1. On the Adeptia Suite homepage, click the Develop tab.
  2. Go to Services > Miscellaneous and then click Mail Notification. The Manage Mail Notification screen is displayed (see Figure 622).

    Figure 622: Manage Mail Notification

  3. Click the Create New link. The Create Mail Notification screen is displayed.
  4. Enter the name of the new Mail Notification in the textbox Name. Then, enter the description for the Mail Notification in the textbox Description.
  5. Select User Defined Message from the dropdown list Notification Type.
  6. Enter subject for the email message in the textbox Mail Subject.
  7. Select the user(s) to whom you want to send the notification email from the textbox To Adeptia user(s).
  8. Enter the recipient(s) email address in the textbox To Email Id(s) (comma separated).

    You can select the recipient of the notification mail either by selecting user from To Adeptia user(s) or by specifying email address in To Email Id(s) (comma separated) field.
    When you select user, the notification mail is sent to the email address specified while creating the user.

  9. Enter the email message in the textbox Message.

    You can format your messages and also send images (Web Url) and links with it by using HTML tags in Message textbox. Formats that are supported by html work here as well.
    For e.g., following are the code snippet to add image and link into mail notification message:

    For image:

    <html>
    <body>
    <h1>heading</h1>
    <img src="http://blog.newrelic.com/wp-content/uploads/java-logo.jpg" alt="some_text" width=200 height=200>
    </body>
    </html>


    For Link:

    <html> 
    <body> 
    <h1>heading</h1> 
    <a href="https://www.google.co.in">Visit our Site</a> 
    </body> 
    </html>|
  10. To send a file(s) as attachment, select the Attachment checkbox.
  11. Enter the file path and file name(s) in the textboxes File Path and File Name respectively (see Figure 623).


    Figure 623: Create Mail Notification

    • To  send multiple files as attachment, separate the name of files with commas in the File Name field. All these files must be placed in the same specified folder.
    • To learn about Advanced Properties refer to section Changing Advanced Properties section.
  12. Click the Save button.

 

Creating Notification to Send Process Flow Summary

Steps to create Process Flow Summary Notification

  1. On the Adeptia Suite homepage, go to Develop > Services > Miscellaneous and then click on Mail Notification. This action will display you the Manage Mail Notification screen (see Figure 624).

    Figure 624: Manage Mail Notification Screen

  2. Click the Create New link. This action will display you the Create Mail Notification screen (see Figure 625).

    Figure 625: Create New Mail Notification

  3. Enter the name of the new mail notification in the textbox Name. Then, enter the description for the mail notification in the textbox Description.
  4. Select Process Flow Summary from the dropdown list Notification Type.
  5. Enter subject for the email message in the textbox Mail Subject.
  6. Select the user(s) to whom you want to send the notification email from textbox To Adeptia user(s).
  7. Enter the recipient(s) email address in the textbox To Email Id(s) (comma separated).

    You can select the recipient of the notification mail either by selecting user from To Adeptia user(s) or by specifying email address in To Email Id(s) (comma separated) field.
    When you select user, the notification mail is sent to the email address specified while creating the user.

  8. Select one of the criteria from the dropdown list Notification Criteria. All criteria are explained in the table below.

    Table 1: Notification Criteria

    Notification Criteria

    Description

    Running or Executed Successfully

    Email is sent only when the process flow is running or executed successfully.

    Failure

    Email is sent only when the process flow execution is failed. However, if any activity before the mail notification fails, then all activities (including Mail Notification activity) are skipped and no email is sent.Thus, it is recommended to use the Mail Notification activity with the End Event of process flow.

    Always

    Email is sent whether the process flow execution is successful or failed. However, if any activity before the mail notification fails, then all activities (including Mail Notification activity) are skipped and no email is sent.Thus, it is recommended to use the Mail Notification activity with the End Event of process flow.

    To learn about Advanced Properties refer to Changing Advanced Properties section.

  9. Click the Save button.

Â