ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Noseda <noseda.a...@gmail.com>
Subject BPEL - How work <if> activity ?
Date Mon, 05 Feb 2007 07:57:27 GMT


I would like to test the if activity but I have strange results.
If I write a BPEL process as follow (I run it into Servicemix) :

<variable name="errorMsg" type="xsd:string"/>

<assign name="test">

<if name="coherencePrecision">
     <assign name="assignPrecision">

I get as result "Tata" !
So the condition fn:true() does not work !
My first question : must I prefix the xpath functions  with
xmlns:fn="http://www.w3.org/2005/xpath-functions" ?

I also test these conditions with also strange results :
<condition>true()</condition> result : Tata
<condition>true</condition> result : Toto
<condition>fn:false()</condition> result : Toto
<condition>1 = 1</condition> result : Tata

So when I write <condition>true</condition> I get result : Toto : the BPEL
process does not execute the if activity and does not execute the else
activity !!!
How is it possible ???

Thanks in advance,


View this message in context: http://www.nabble.com/BPEL---How-work-%3Cif%3E-activity---tf3172971.html#a8802271
Sent from the Apache Ode User mailing list archive at Nabble.com.

View raw message