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
Expand all | Collapse all

Array index variable

  • 1.  Array index variable

    Posted Fri September 12, 2003 02:45 AM

    in one of my map steps, my target variable is an array and i want to use a variable as an index to fill this array. I am using the
    %iteratorvariable% to specify one of the indexes. however, this field is not populated. when i replace it with a hard coded constant, it works. what could be the reason for this error?

    thanks,
    mow


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


  • 2.  RE: Array index variable

    Posted Fri September 12, 2003 03:03 AM

    Have you checked the Variable Substitution on?since you are using
    %iteratorvariable% to generate dynamically while runtime.


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


  • 3.  RE: Array index variable

    Posted Fri September 12, 2003 03:44 AM

    should i check variable substitution for the iteratorvariable or the target variable?

    thanks,
    mow


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


  • 4.  RE: Array index variable

    Posted Fri September 12, 2003 04:47 PM

    Make check for the iteratorvariable,if i understood your problem correctly…

    Thanks,


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


  • 5.  RE: Array index variable

    Posted Fri September 12, 2003 11:18 PM

    well i did that, but it does not work. is there a way to debug this step. the variable gets the value i assign ( i can see in trace mode) but the index assignment does not happen.

    mow


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


  • 6.  RE: Array index variable

    Posted Mon September 15, 2003 08:50 PM

    I am also facing the same problem
    Even I can`t find any Variable Substitution tab while opening the propertis of the Map line…

    Can some tell us how to map the elements to Document List

    Thanks
    Deepak


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


  • 7.  RE: Array index variable

    Posted Tue September 16, 2003 02:14 AM

    mow-soso: By “using the %iteratorvariable%”, you mean you’re using %$iteration% and variable substitution is turned on, right?


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


  • 8.  RE: Array index variable

    Posted Wed September 17, 2003 05:53 PM

    Sonam,

    I tried to put %$iteration% in the index tab of the Map properties but I couldt get where i should variable substition turned on...becoz i cant find any tab for variable substition in the map line Properties …

    Can you please comment on it
    I have gone through WM documentation as well but I could`t find if we can assign “Index” value at Run Time…
    What i did to generate the Document List (Where Source Document List size is not equal to Target Document List) at Run time …I create dummy Document & DocumentList in the Pipe line and use the service “pub.list:appendToDocumentList” and finally assign the dummy document list to Target Documenet List…

    It works for me
    But i thing it is not the ideal way to do it because in complex mapping there may be n number of scenarios where Source Documenet List Size wont be matching with the Target Document size...there I cant just keep creating dummy documents & lists

    Please suggest a way to overcome it

    Thanks
    Deepak


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


  • 9.  RE: Array index variable

    Posted Tue December 16, 2003 12:05 PM

    Hi,
    I have the same problem, have you found an other way to do it.
    thanks


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