cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Email Body - Using AlertAPI

Former Member
0 Kudos

Hi,

     I have quite understood the flow as to how to invoke the Alert webservice. I have configured my scenario using File as Sender and Soap receiver and file adapter using request response bean. But my doubt is - if an interface fails, how do i link it up with this custom email alert.

crux - when we create alert rules, we usually use the default consumer - ALERT-TO-MAIL or we go to WS-Navigator and change the consumer to as per our requirement. Then in both the cases we schedule a batch job.

In my custom alert scenario -- (File to SOAP to File).. how will i link the alert interface everytime a standard interface fails. There is no batch job here -correct me if i am wrong? - how will i trigger this custom alert interface if any of my normal interface fails.

Do i always need to create Alert Rules with the consumer i am passing in the file? In this case it is not a custom interface anymore. - correct me if i am wrong?

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Hi Diptendu - In my custom alert scenario -- (File to SOAP to File).. how will i link the alert interface everytime a standard interface fails. There is no batch job here -correct me if i am wrong? - how will i trigger this custom alert interface if any of my normal interface fails.

>>>>No need to schedule any job.  You'll have to place a file with the Alert Consumer Name on the NFS/FTP location and keep the channel in test mode

so that based on your polling intervel your interface will be executed in which it'll check if there are any alerts for the consumers listed in the source file.

Do i always need to create Alert Rules with the consumer i am passing in the file? In this case it is not a custom interface anymore. - correct me if i am wrong?

>>> Yes. You have to provide the consumer name in the source file.  what this interface does it.. take the consumer name from the source file.. call the webservice to retrive the alerts for that perticular consumer.. and triggers an email..

Note: This interface will still sends an email even though you don't have any pending alerts for that consumer..

Former Member
0 Kudos

Logical! Thanks Hareesh!
I am keeping the forum open as of now. I need to do an end to end. There are some auth issues still in the server. I will close this call once i have the system in plc and i get to do an end to end.

Thanks anyway!

Answers (1)

Answers (1)

Harish
Active Contributor
0 Kudos

Hi Deptendu,

Please refer the below blog

regards,

Harish

Former Member
0 Kudos

Hi Harish,

         I have seen the blogs - can u summarize the trigger point for me? I dont have a complete running system as in dont hv access to nwa and ws navigator. Hence this confusion. If you can brief me about it then may be i will be able to relate better.

Former Member
0 Kudos

Triggering as in - linking this up with other interfaces. I know the File Sender channel will trigger this interface. But this looks like a standalone interface - correct me if i am wrong?

former_member184720
Active Contributor
0 Kudos

Yes. It's a separate interface

In your alert rule for all other interfaces- you need to assign a consumer and mention the same in the input file

Harish
Active Contributor
0 Kudos

Already shared by Hareesh.

regards,

Harish