Quite often an application needs to process e-mails arriving to the business’s e-mail address and perform certain functions automatically based on the e-mail contents. For example, a customer relationship management system might register all e-mails from customers in its database, assign a unique ID to the e-mails and automatically reply to customers with the details about their request.
In Aware IM it is possible to configure an application to process incoming e-mails and perform the necessary actions. As mentioned before all communication with the external parties in Aware IM is performed either via notifications or service requests (see also Defining Intelligent Business Objects). Incoming e-mails are no exception – Aware IM treats them as notifications sent to the Aware IM application via a special channel. Once incoming e-mails have been delivered to Aware IM as notifications Aware IM evaluates any rules attached to the notification as usual. It is up to the configurator to define the appropriate rules.
All that the configurator has to do to make sure that the application handles incoming e-mails is turn on the e-mail handling capability for the business space version, set the properties of the incoming e-mail channel and define the rules that deal with the incoming e-mail notification. This is explained in more detail below:
DISCONNECT FROM EMAIL
action in a process. For more details see the CONNECT TO EMAIL
and DISCONNECT FROM EMAIL
actions in the Rule Language Guide.To turn on incoming e-mail handling capability for a business space version follow the steps below:
The Configuration Tool will automatically add the following business objects and notification into the business space version:
This is the notification that represents an incoming e-mail. This notification has a special structure that you cannot change (you can define other attributes but you cannot change the existing ones). The attributes of the notification contain the properties of the received e-mail, such as who it is from, when it was received etc. Any rules that you want to specify to handle incoming e-mails must be attached to the events of this notification – see Adding/Editing Rules. You can check values of the pre-defined attributes of the notification in your rules and perform the appropriate actions.
To turn off the incoming e-mail handling capability for the business space version select the “Incoming emails” property of the business space version to bring up the “Incoming Emails” dialog and select “The system will not handle incoming emails” radio button.