Hi Simone,
The problem is having two activities in the first branch, and <if> executes
only a single activity (which can be a sequence). So you should have:
<if name="1">
<condition>true()</condition>
<sequence>
<assign>
<from>false()</from>
<to part="resp" variable="respMex"/>
</assign>
<invoke inputVariable="respMex" [...]/>
</sequence.
<else>
<sequence>
<assign>
<from>true()</from>
<to part="resp" variable="respMex"/>
</assign>
<invoke inputVariable="respMex" [...]/>
</sequence.
</else>
</if>
On Thu, Mar 27, 2008 at 8:52 AM, Simone Maletta <[EMAIL PROTECTED]>
wrote:
> Hi guys,
> I wrote this simple BPEL code to make a prove:
> <if name="1">
> <condition>true()</condition>
> <assign>
> <from>false()</from>
> <to part="resp" variable="respMex"/>
> </assign>
> <invoke inputVariable="respMex" [...]/>
> <else>
> <assign>
> <from>true()</from>
> <to part="resp" variable="respMex"/>
> </assign>
> <invoke inputVariable="respMex" [...]/>
> </else>
> </if>
>
> but nothing happens.
> I know always the first brach shold be executed.
> Where is the problem? There is someone may help me???
> Thank you very much, regards
> Simone