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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  problem with IF...

    Posted 01/30/03 03:04 AM

    Have the following XQuery:

    for $a in input()/roleuser
    let $c := string($a/user)
    let $r := string($a/role)
    return
    if ($r = “administrator” )
    then $a
    else ()

    which doesn’t work in Tamino 4.1.1.1. But this one does:

    for $a in input()/roleuser
    let $c := string($a/user)
    let $r := string($a/role)
    where ($r = “administrator”)
    return $a

    What am I doing wrong?

    Even if I replace “else ()” by “else $a”, it doesn’t work.

    Do you guys have any suggestions? am I using the if statement the wrong way?

    Thanks in advance,

    – Juan


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: problem with IF...

    Posted 01/30/03 11:53 AM

    Seems like IfExpr is not implemented as yet with Tamino v4.


    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: problem with IF...

    Posted 01/30/03 08:16 PM

    Was suspecting that, just wanted to give it a try.


    #Tamino
    #webMethods
    #API-Management