OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [wsbpel] Issue - 63 - Support of Array


I probably missed your point.  Are you defining a new ComplexType called 
"Array" here so that you can deal with multiple rows ?

So here is the code to receive 10 incoming calls and store them into the 
array ...

<process>
   <variables>
     <variable name="i" type="int"/>
     <variable name="temp" type="Row"/>
     <variable name="rowArray" type="Array"/>
   </variables>

   <sequence>
     <assign>
       <to variable="i"/>
       <from expression="0"/>
     </assign>

     <while condition="i &lt; 10">
       <receive ... variable="temp"/>
       <assign>
          <!-- assume we resolve issue 11 -->
         <append>
           <to variable="rowArray" xpath="/Array/Row[last()]"/>
           <from variable="tempPO"/>
         </append>
       </assign>
       <assign>
         <to variable="i"/>
         <from expression="i + 1"/>
       </assign>
     </while>

   </sequence>
</process>


... As compare to the following code if BPEL supports array

<process>
   <variables>
     <array name="rowArray" type="Row"/>
   </variables>

   <sequence>
     <iterate array="rowArray" count="10">
       <receive ... array="poArray"/>
     </iterate>
     ....
   </sequence>
</process>

Best regards,
Ricky


At 04:19 PM 9/15/2003 -0400, David RR Webber - XML ebusiness wrote:
>Ricky,
>
>Try this:
>
>  <Array>
>      <Row  column="X" value="foo">
>      <Row  column="Y" value="foo1">
>      <Row  column="Z" value="foo2">
>  <Array>
>
>and similar varients.
>
>DW.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]