Requirement: We want to use multiple End Events at the end of each sequence flow that is created based on the condition of multiple Gateway. Currently, Adeptia doesn't allow multiple End event to attach the email notification due to restrictions Notification can only be attached only with single End Event. There can be below cases in which the notification would be expected:-
Case #1: If any activity of the Process flow gets aborted.
Case #2: If the process flow gets executed successfully. For successful execution, we have two conditions. In one case, we want to send Email Notification and in other, Email is not needed.
In Adeptia, you can currently use multiple End/Exit events but notifications don't work with multiple End Event and if we do use the notification we get the same status on each End Event. This scenario has to be handled with an alternate solution, as we cannot attach different Email Notification activity on each End event.
This situation can be handled by appending separate Mail Notification Activities before the End Events. The detailed steps for fulfilling this requirement can be followed from below:-
- Create a Mail Notification activity for the Failed use case #1 (let's say ErrorNotification) and select the Notification type "Process Flow Summary" and Notification criteria "Failure".
- Now, create another Mail Notification activity (let's say SuccessEmailNotification) for the successful execution of sequence flow, that required email (Case #2), and set the Notification type "Process Flow Summary" and Notification criteria to "Running or Successful Execution".
- Open the existing process flow designer and add the Email Notification "ErrorNotification" on all 3 End event. In this way, if any activity gets failed then Email will be sent. (covered case#1).
- Now, add Mail Notification activity "SuccessEmailNotification" just before the End event of the successful execution conditions where email is needed as shown below.
Note: Here, the screenshot is for reference only.
Article is closed for comments.