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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Coding convention for %24error %24errorMessage

  • 1.  Coding convention for %24error %24errorMessage

    Posted Thu October 17, 2002 11:45 AM

    I am writing a flow that should “return with success” under all conditions. However, in case an error occurs, it should set an error variable.

    Can I declare a ‘$error’ variable in my service output, or should I use a different variable?

    I think $error has internal significance to the IS server –
    can someone elaborate. The IS development guide does not say much here.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Coding convention for %24error %24errorMessage

    Posted Thu October 17, 2002 03:38 PM

    $error is a system variable that is set automatically whenever an unhandled exception is thrown. I am not aware of any specific anomalies you would encounter if you used it. But if it was me, I would declare my own.

    By the way, an easy way to suppress all exceptions is to place your flow inside a Sequence with the “exit on” condiftion set to “Done”.

    Regards,
    Theo


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Coding convention for %24error %24errorMessage

    Posted Fri October 18, 2002 03:29 AM

    Thanks Theo - Yes, I guess an explicit error message would be better here. Thanks for the tip - it will come in handy!


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB