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 by value vs by reference

    Posted Thu July 17, 2003 05:35 PM

    Is there a way to pass a variable by value to another flow service to prevent the modifications performed in the flow service from being returned to the calling services?


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


  • 2.  RE: Passing by value vs by reference

    Posted Thu July 17, 2003 06:50 PM

    Calling the service via transformer may do the trick.

    You might try copying the variable that you want to leave untouched to another var and pass the temp var. This will work just dandy for strings as mapping string vars makes a copy. However this won’t work for records unless you do a deep copy/clone.


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


  • 3.  RE: Passing by value vs by reference

    Posted Thu July 17, 2003 07:39 PM

    For the this particular instance I am dealing with records and record lists. I applied the same concept that you mentioned; with the caveat that you must map at the lowest common denominator from the source record to the destination record, which is effectively implementing the deep copy, and then you must drop the source record. Not sure about the performance in this instance, but it was much faster implementation than implementing Clone in a java service.


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