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.  Passing a global variable value

    Posted Mon June 08, 2009 10:16 PM

    I am new to web methods. I would like to add some debug statements in a flow service. I am using debuglog to print the message to the log. what I could not figure out is a way to give message and a variable value to the debug statement. What is the syntax to do this? I would like to be able to say something like " End of loop reached " + loopNumber. It does not work when i use it this way. There must be some character that is used inorder to say to the compiler that ‘loopNumber’ is a variable and needs to grab its value.


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


  • 2.  RE: Passing a global variable value

    Posted Mon June 08, 2009 11:03 PM

    If you have a variable say iteration in the pipeline then try using this message for the debug log input “End of loop reached %iteration%” and check the perform variable substitution option to true.

    Cheers,
    Akshith


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


  • 3.  RE: Passing a global variable value

    Posted Tue June 09, 2009 09:17 AM

    You have to be in the right scope.
    Try to create a variable call it counter befor the loop and inside the loop map the iteration to that variable.

    once you finish from the loop, add a debugLog and set the value to (End of loop reached %counter%).


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


  • 4.  RE: Passing a global variable value

    Posted Tue June 09, 2009 03:11 PM

    Thanks Akshith. I could not find the property you mentioned to set. Is it on the message? or on the debug statement?


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


  • 5.  RE: Passing a global variable value

    Posted Tue June 09, 2009 05:42 PM

    I found the property but it did not work. The message displays with the percentage(%) symbols instead of evaluating the string inside the symbols as a variable. Is there anything else that needs to be set to tell the compiler that it is a variable?


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


  • 6.  RE: Passing a global variable value

    Posted Tue June 09, 2009 06:06 PM

    Reddi,

    See the attached doc for reference. Also you might want to refer to the developers guide.

    Cheers,
    Akshith


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


  • 7.  RE: Passing a global variable value

    Posted Tue June 09, 2009 08:11 PM


  • 8.  RE: Passing a global variable value

    Posted Tue June 09, 2009 09:34 PM