Quantcast
Channel: SAP Process Orchestration
Viewing all articles
Browse latest Browse all 108

Interface specific Email Alert in PO using CBMA

$
0
0

I had a requirement where I needed to send the alert emails to different people based on the interface.In more simple word, for Interface#A I had to send email to csk@xyz.com but for interface#B, I had to send alert email to mno@dfg.com. So basically I had to use CBMA to send email alert but to the different consumer/recipients for different interfaces. So we created the consumer/alert and jobs for Interface#A and repeated the same step for Interface#B.

Here are the steps I performed.

 

Step1: Create Alert in ID:Assign corresponding objects for which you want to create the alert.In my case, I added one ICO.

 

pic1.jpg

Now as we want to create a new consumer to be used here in this alert rule, we do not set the consumer name in the Extended tab. Leave it blank and activate(you may get warning after activation of the rule).

pic2.jpg

 

Step2: Now we need to register the new CONSUMER we want to create along with the ALERT RULE we created in Step1.

 

To do this, go to Service Registry.

pic3.jpg

 

Now search for the definition called AlertRuleIn.

 

pic4.jpg

 

 

Now go to Endpoints tab and click on TEST button.

pic5.jpg

A new window will be opened.There you need to click on RegisterConsumer service and Next.

pic6.jpg

 

On the next page we need to put the exact name of the AlertRule created in ID and the new CONSUMER we want to create.

 

pic6.jpg

 

 

Once you click on Next, you should be able to see a message in XML like below.

pic6.jpg

After this step you should be able to see the CONSUMER added to Alert Rule automatically.

 

pic6.jpg

 

Step3(One Off Activity): Now you need to configure Java Mail Client.

NWA>Configuration > Infrastructure > Java System Properties > Services - Java Mail Client.

In properties Tab, provide the mandatory parameters like below.

mail.from

mail.smtp.host

mail.smtp.password

mail.smtp.user

pic6.jpg

 

 

 

Step4: Scheduling a task to send the emails using the new alert/consumer we created(step1,Step2) and the Java mail client configured(step3).

 

Go to NWA>Operations > Jobs > Java Scheduler > Task.

Add a new Task.

 

pic6.jpg

 

 

Now you need to select the existing consumer job.

 

pic6.jpg

Click on Next.Here you can provide a suitable task name.

pic6.jpg

 

Click on Next.

Here you need to set properties.

 

pic6.jpg

 

Click on Next.

 

Here you need to set the start/end time and the frequency at which the Job should run. In my case it is 1 hour.

pic6.jpg

Then click on Add.

pic6.jpg

Now click on Finish and you should be able to see the task created.

pic6.jpg

With this the configuration is completed.

 

Result: If there any error happened then the recipient should get an email like below.

 

pic6.jpg

 

Now repeat the step1 to Step4 (Except Step3)for Interface#B to generate the alert emails to different set of recipients.


Viewing all articles
Browse latest Browse all 108

Trending Articles