IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Customizing Email message

    Posted Fri November 08, 2002 02:19 PM

    Hi,

    If an exception occurs in a flow, the webMethods sends an email with the exception. I would like to customize the message.

    Could anyone tell me how to do?
    I’m using IS 4.6.

    RK


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 2.  RE: Customizing Email message

    Posted Fri November 08, 2002 02:33 PM

    What we have done is to use Try/Catch blocks of code and in in the catch block of our code we have the following services:

    Catch
    –getLastError
    –handleError
    –EXIT

    The handleError service is a service we created which accepts the exceptionInfo from the getLastError service(this service can be found in the WmPublic package in the pub.flow section).
    We then use the exceptionInfo and search it for keywords to determine which division in our company the error should goto and generate an email to them with the exception information.
    This allows us some flexibility in emailing the exceptions that occur within the flow as well as any other failures that may have been built into the flow that throws the error.

    Hope this helps some


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Customizing Email message

    Posted Fri November 08, 2002 03:04 PM

    Thanks Daniel…

    For this, do I need to have a separate “Email” adapter ? Or Can it be done using default services(if so, what are they) provided by webMethods?

    RK


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Customizing Email message

    Posted Fri November 08, 2002 03:33 PM

    We used the smtp service to send emails out. It is located in the WmPublic package under the pub.client section


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Customizing Email message

    Posted Fri November 08, 2002 04:44 PM

    Further to a request i made a couple days ago, look at the examples in WmSamples.samples.errorHandling. You can modify the code!! I hooked up invokeandCatchErrors with pub.client:smtp - that way you know which service has failed too!

    hth
    stallion


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 6.  RE: Customizing Email message

    Posted Fri November 08, 2002 05:08 PM


  • 7.  RE: Customizing Email message

    Posted Tue April 01, 2003 09:50 AM

    one more doubt along these lines… how does one make sense of an email message… meaning how does one read an email message?


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Customizing Email message

    Posted Tue April 01, 2003 01:28 PM

    You can send the email to your email client software (outlook express, lotus) or your public email accout (yahoo, hotmail) and then read the message!
    Nambi!


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport