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.  tamino 4.2.1.1 / if-then-else

    Posted Tue October 13, 2009 04:02 PM

    Is if-then-else supported? every doc/tutorial I’ve found on x-query implies this should work -

    for $parent in input()/alioncorporate[@objectId <50> 40)
    then $p
    else ()
    )

    but it chokes on “then” saying it’s expecting mod div % = <= >= sort stable blah blah blah.


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: tamino 4.2.1.1 / if-then-else

    Posted Tue October 13, 2009 10:27 PM

    If I remember correctly if-then-else support was added in Tamino 4.4.1; you’ll need to upgrade to use it.


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: tamino 4.2.1.1 / if-then-else

    Posted Wed October 14, 2009 09:27 AM

    Hi,

    it looks like your example is lacking the “if ( condition ) part” - here is the complete example I found on the internet:

    for $parent in input()//alioncorporate[@objectId <50> 40)
    then $parent/@objectId
    else ()
    )

    The query is accepted by Tamino 8.0 - but should also be valid with 4.4

    Regards
    Uli


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: tamino 4.2.1.1 / if-then-else

    Posted Wed October 14, 2009 04:28 PM

    the forum software has a tendency to mangle posted code. Try enclosing the sample in square-brace code tags - {code}…{/code} but with square braces.


    #API-Management
    #Tamino
    #webMethods