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
  • 1.  WM FLOW CONTINUEBREAK

    Posted Mon May 19, 2003 09:58 AM

    Hi,
    we use wM4.6 with TN4.6 on win2K platform.

    Within the flow loop, checking on some conditions, I should continue the loop and on other conditions I should break the loop and go out.
    A sample flow as follows :

    SEQUENCE (Exit on Success)
    SEQUENCE (Exit on Failure)
    step 1
    step 2
    step 3 PROCESS: LOOP (ArrayList)
    step 4 getFileList (retrieves a list of files from harddisk)
    step 5 BRANCH (Check if the output of getFileList array length and if > 0 continue loop)
    step 6 (do action 1)
    step 7 (do action 2)
    step 8 (do action 3)
    step 9 continue (PROCESS)
    step 10
    step 11
    step 12
    step 13
    SEQUENCE (Exit on Done)
    getLastError;
    alert via email;

    It is like continue; break in JAVA language.
    Any pointers how to do with flow?

    Thanks and Regards
    Jay


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


  • 2.  RE: WM FLOW CONTINUEBREAK

    Posted Mon May 19, 2003 12:28 PM

    step 5 BRANCH (Check if the output of getFileList array length and if > 0 continue loop) - Check evaluate flags = true & label = array length
    SEQUENCE1: label = arraylength > 0
    Do whatever you want to do
    SEQUENCE2: default
    Send email and EXIT from loop/flow

    Thanks


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


  • 3.  RE: WM FLOW CONTINUEBREAK

    Posted Mon May 19, 2003 05:43 PM

    Here is another way:

    SEQUENCE (Exit on Success)
    …SEQUENCE (Exit on Failure)
    …step 1
    …step 2
    …step 3 PROCESS: LOOP (ArrayList)
    …new step MY_LABEL: SEQUENCE (exit on failure)
    …step 4 getFileList (retrieves a list of files from harddisk)
    …step 5 BRANCH sizeOfList
    … 0: EXIT MY_LABEL (this will exit the sequence but continue the loop)
    …step 6 (do action 1)
    …step 7 (do action 2)
    …step 8 (do action 3)
    …step 9 continue (PROCESS)
    …step 10
    …step 11
    …step 12
    …step 13
    …SEQUENCE (Exit on Done)
    …getLastError;
    alert via email;


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


  • 4.  RE: WM FLOW CONTINUEBREAK

    Posted Tue May 20, 2003 03:52 AM

    Hi Vinod n Rob,
    Thanks for your suggestions.
    Followed Rob’s suggestions. It works.
    Vinod, your suggestion would work but, I need to insert additional sequence.

    Thanks n Regards
    Jey


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