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.  Indexed Set Value Modifier

    Posted Wed January 26, 2005 11:29 PM

    I’ve always wondered, if you can index link modifiers, why not set value modifiers?

    Any ideas?


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


  • 2.  RE: Indexed Set Value Modifier

    Posted Wed January 26, 2005 11:51 PM

    Can’t you though? Have you tried something like:

    %/elementA/elementB/elementC[2]/elementD%

    as your set value, with the “Enable variable substitution” box checked?


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


  • 3.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 12:29 AM

    Yes… for the source. What about the target?

    Regards


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


  • 4.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 07:18 AM

    Target you can’t set like that in normal flow service. Java service you can do that but will involve java coding.


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


  • 5.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 11:41 AM

    I know.

    I was wondering why this is the case.

    I use indexed links a lot when I know the specific index of the target list. It’s aggravating to create a temp variable to simulate an indexed set-value modifier.

    Has anyone asked a webMethods engineer about this at a conference?


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


  • 6.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 05:07 PM

    I think the way to do this for the target is to use a normal map step and set the index value for the target on the “mapping line”. You’ve probably already tried that but just in case…


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


  • 7.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 05:32 PM

    Rob, I think Mark’s saying that’s what he does now, using a temp variable so that he can set the index on the link. One way of not using the temp variable might be to loop over the target list and branch on $iteration to determine when to do the set. That’s certainly not any easier though, it just avoids using an extra variable.

    Mark, are you familiar with the Wish List forum on Advantage :-)?


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


  • 8.  RE: Indexed Set Value Modifier

    Posted Thu January 27, 2005 10:23 PM

    That was pretty much the way it looked to me.

    I guess I was just curious about it.

    I do use loops when the target index is unknown at design time.

    When the index is known and the target is deep within multiple nested documents, the multiple loop steps to “flatten” the document lists seem ugly to me.

    My Wish List suggestion would be that when you open a set value modifier, it has data entry textboxes for all appropriate index levels just like the index property dialog for a link.

    I guess I’ll post it.

    :sunglasses:


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