Skip to Content
avatar image
Former Member

Custom Email Body - Using AlertAPI

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 04, 2014 at 10:40 PM

    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..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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! 😊

  • Mar 04, 2014 at 10:14 PM
    Add comment
    10|10000 characters needed characters exceeded