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.  how to implement Repeat step in flow service

    Posted Wed June 27, 2007 07:29 AM

    Hi All,

    I am new to wM development i want to the examples on Loop and Repeat step. I am trying to add numbers from 1to 9. But am getting the desired output. First I initialized the count then Repeating the count for 9 times , inside Repeat am using a Map step to increment the count by 1 and invoked the addInts flow step after this.
    I am not getting the desired output. Help me

    Regards,
    Datta


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


  • 2.  RE: how to implement Repeat step in flow service

    Posted Wed June 27, 2007 11:43 AM

    In Repeat Flow step you have to specify two properties.
    1) count = 9
    2) Repeat on = Success.

    I checked, its giving expected results… More info refer attachment-Repeat_CountOnetoNine.zip…(Install and check it)
    Repeat_CountOnetoNine.zip (4.54 KB)


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


  • 3.  RE: how to implement Repeat step in flow service

    Posted Wed June 27, 2007 12:03 PM

    Can you plz mention each step wise and the properties as well
    Anyways thanks for the help


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


  • 4.  RE: how to implement Repeat step in flow service

    Posted Wed June 27, 2007 12:37 PM

    1. place the zip file in your /replicate/inbound/
    2. login into IS–>Package Management–>install inbound releases
    3. select the zip file & Install it…
    4. login into developer and check it…


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


  • 5.  RE: how to implement Repeat step in flow service

    Posted Wed June 27, 2007 12:40 PM

    Hi
    as i need to contact some admin guys for that, as i dont hav previliges. Just give me step wise and mapping as well
    Help is highly appreciated

    Regards,
    Datta


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


  • 6.  RE: how to implement Repeat step in flow service

    Posted Wed June 27, 2007 12:53 PM

    1) first flow step - use map step to store count = 0
    2) second flow step - use repeat -
    select properties - count=9
    Repeat on = Success
    3) inside repeat step, use map step and add math.addInteger using transformer
    map “count” to num1
    assign num2 = 1
    and map variable “value” to count…
    4) If you run this service, final output will be stored in to count.

    for more info see attachment… result will be “10”
    count1to9_using_repeat.JPG


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


  • 7.  RE: how to implement Repeat step in flow service

    Posted Thu June 28, 2007 07:38 AM

    Hi Arul,

    Thanks for spending considerable amt of time and explainig me clearly.
    I am trying to implement a flow service that gives whether the given number is prime or not?
    I am using Repeat for that and its not executing steps inside the Repeat step.
    I am initializing flag to 0 and in Repest count property set to %n% and Success. Inside Repeat am using Branch in which am comaping if n%i==0 setting falg = 1.
    After that am using another Branch outside this Repeat and comparing if flag =0 then displaying ‘the number given is Prime’, but its not working where am i going wrong.
    How to proceed plz help me.


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