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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Finally Method

    Posted 11/23/10 06:50 AM

    All,

    How to implement the Finally() method in webMethods?

    Thx
    KarthiK.


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 2.  RE: Finally Method

    Posted 11/23/10 02:53 PM

    I presume you mean Integration Server, and specifically Flow?

    In Flow you have:-

    
    MAP worked = false
    SEQUENCE (exit on SUCCESS)
    --- SEQUENCE (exit on FAILURE)
    --- busines logic here
    MAP worked = true
    --- SEQUENCE (exit on DONE)
    --- error handling here
    finally code here

    So if the first SEQUENCE (exit on SUCCESS) will always succeed. So anything after this point is effectively Finally() code, i.e. code that will execute regardless of whether your business logic fails or succeeds.

    Hope this helps.


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration