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.  SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/21/15 12:31 PM

    Dear All,

    I observed something strange (may not) and would like to ask your comments or views on this!

    Say I have written a flow like below:

    Input: num1, num2
    Output: sum, diff, multi

    SEQUENCE (Exit on Success)
    → MAP (Invoke addInts as a transformer service)
    → MAP (Invoke subtractInts as a transformer service)
    → MAP (Invoke multiplyInts as a transformer service)

    As per the SEQUENCE (exit on success property) it should Exit the sequence when a child step executes successfully or after all child steps fail.

    From the above statement, if I pass num1=1 and num2=2 to the code I should expect only sum=2 but that is not the case I see sum, diff, multi.

    And also in the code if I replace MAP with Invoke step I see only sum=2.

    Is it a bug in the product or it is a expected behavior for a MAP (invoke svc as a transformer) step within sequence (exit on success). :slight_smile:


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/21/15 02:57 PM

    Hi Mahesh ,

    If you use a flow step instead of invoking a transformer then your condition might have been true . But here you used a MAP step which will never succeed . As per the points in documentation.

    A failure in a MAP step (that is, a failure in one of the transformers) will cause
    the containing SEQUENCE to exit when you set Exit on to FAILURE. However, a MAP
    step that does not fail will not cause the containing SEQUENCE to exit when you set
    Exit on to SUCCESS. That is, a MAP can fail but it does not “succeed.”

    Thanks
    Nithin


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/21/15 05:01 PM

    I agree with Nithin on the above reference.


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/21/15 08:17 PM


  • 5.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/21/15 09:25 PM

    I see this point as a NOTE. But why is it designed in this way. Is there a reason behind this. In real time how is this behavior useful.


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/22/15 10:26 AM

    Question goes to SAG in practical :smiley:


    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/22/15 12:04 PM

    May be SAG knows it better :slight_smile: I hope the moderator is watching this topic!


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 01/22/15 02:05 PM


  • 9.  RE: SEQUENCE (EXIT ON SUCCESS) Behaviour in webMethods

    Posted 12/26/16 06:39 AM