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.  default value of Exit flow step

    Posted Tue September 30, 2008 10:31 AM

    What will be the default vaue of exitfrom field of EXIT flow step in developer, ie when we wont specify any value in exitfrom field where will the exit takes place like from parent, loop or from flow.


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


  • 2.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 02:45 PM

    There is no default unless you set it…If you dont’t specify any in the Exit from it will cause Exception…so its a mandatory setting.

    com.wm.lang.flow.FlowException: [ISC.0049.9001] FlowExit ‘’ – no valid ancestor to exit from $loop

    Why are you looking for default??

    HTH,
    RMG


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


  • 3.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 02:59 PM

    what if the flow service contains a loop and parent child structure, in that case what happens if we keep only exit step without giving the value to exitfrom field.

    My question is how exit step acts in a flow service where both loop and parent are present when exitfrom feild is not set. whether it will exit from loop r parent r flow?.


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


  • 4.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 04:30 PM

    Default is exit from loop. If the exit is in a loop, it will exit from that and not affect parent processing.


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


  • 5.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 04:35 PM

    BTW, you can test this behavior very easily with the following:

    • Sequence Exit on Failure (this is the parent)
      – Loop over /someList
      — pub.flow:debugLog (map someList to message)
      — Exit (with Exit from not set)
      – pub.flow:debugLog (message = “Out of loop, still in parent”)

    The flow will print the first debugLog message, hit the Exit, exit the loop, and then print the “Out of loop…” message.


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


  • 6.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 04:35 PM

    In that case use Exit from $loop and continues parent flow to process further.

    HTH,
    RMg


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


  • 7.  RE: default value of Exit flow step

    Posted Tue September 30, 2008 04:35 PM

    As rmg alludes to, the behavior will depend on the structure of your service.

    The exit step will exit the nearest ancestor flow step where the Exit from value matches the label value of the step. If an empty string is used in the label, the nearest ancestor step without a label will be the block that is exited.

    Refer to the Developer User’s Guide, Chapter 7, “The EXIT Step” for details. Then try out some tests on your own.

    My advice is to always explicitly set the Exit from and not leave it blank. This will avoid confusion and possibly unexpected behavior.


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