You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Mario Viertel <Ma...@medav.de> on 2010/09/23 16:14:15 UTC
How to manipulate an array?
Hi all,
imagine I have an AJAX form with a table (Customer) filled with 5
customers in it. I copy the content of the table to a variable.
The variable content could looks like this:
<customers>
<customer><id>4711</id> ... </customer>
<customer><id>4712</id> ... </customer>
<customer><id>4713</id> ... </customer>
<customer><id>4714</id> ... </customer>
<customer><id>4715</id> ... </customer>
</customers>
Later I want to manipulate the customer with id 4712. Is it possible
with BPEL to iterate over the variable content an manipulate e.g. the
second entry?
If yes, how?
TIA
Mario
Re: How to manipulate an array?
Posted by Mario Viertel <Ma...@medav.de>.
Hi Waruna,
thanks for the link.
Regards
Mario
Am 23.09.2010 16:28, schrieb Waruna Ranasinghe:
> Hi Mario,
>
> You may find an iteration sample at [1]
> This iterates through a bpel variable.
>
>
> [1] -
> https://svn.wso2.org/repos/wso2/trunk/stratos/samples/shopping-cart/bps/ReOrderProcess/src/ReOrderProcess/ReOrderProcess.bpel
>
>
> Thanks,
> Waruna
>
> On 23 September 2010 19:44, Mario Viertel<Ma...@medav.de> wrote:
>
>> Hi all,
>>
>> imagine I have an AJAX form with a table (Customer) filled with 5 customers
>> in it. I copy the content of the table to a variable.
>>
>> The variable content could looks like this:
>>
>> <customers>
>> <customer><id>4711</id> ...</customer>
>> <customer><id>4712</id> ...</customer>
>> <customer><id>4713</id> ...</customer>
>> <customer><id>4714</id> ...</customer>
>> <customer><id>4715</id> ...</customer>
>> </customers>
>>
>> Later I want to manipulate the customer with id 4712. Is it possible with
>> BPEL to iterate over the variable content an manipulate e.g. the second
>> entry?
>> If yes, how?
>>
>> TIA
>> Mario
>>
>
>
--
Mit freundlichen Gruessen
Mario Viertel
RMS - Radio Monitoring and Surveillance Solutions
BIS - Business and Intelligence Solutions
Tel: +49 9131 583 510
Fax: +49 9131 583 11
Mail: mario.viertel@medav.de
Betriebsstaette Ilmenau
Homburger Platz 3
98693 Ilmenau
_____________________________________________________
MEDAV GmbH
Graefenberger Str. 32-34
D-91080 Uttenreuth
Geschaeftsfuehrer Dr.-Ing. Hans-Joachim Kolb
Handelsregister Fuerth HRB 2311
Bankverbindung
Stadt- und Kreissparkasse Erlangen
BLZ 763 500 00, KtNr. 10 - 000 344
Internet http://www.medav.de
SOMOS-Portal: www.somos-portal.de
Angaben gemaess EHUG vom 10.11.2006
Re: How to manipulate an array?
Posted by Waruna Ranasinghe <wa...@gmail.com>.
Hi Mario,
You may find an iteration sample at [1]
This iterates through a bpel variable.
[1] -
https://svn.wso2.org/repos/wso2/trunk/stratos/samples/shopping-cart/bps/ReOrderProcess/src/ReOrderProcess/ReOrderProcess.bpel
Thanks,
Waruna
On 23 September 2010 19:44, Mario Viertel <Ma...@medav.de> wrote:
> Hi all,
>
> imagine I have an AJAX form with a table (Customer) filled with 5 customers
> in it. I copy the content of the table to a variable.
>
> The variable content could looks like this:
>
> <customers>
> <customer><id>4711</id> ... </customer>
> <customer><id>4712</id> ... </customer>
> <customer><id>4713</id> ... </customer>
> <customer><id>4714</id> ... </customer>
> <customer><id>4715</id> ... </customer>
> </customers>
>
> Later I want to manipulate the customer with id 4712. Is it possible with
> BPEL to iterate over the variable content an manipulate e.g. the second
> entry?
> If yes, how?
>
> TIA
> Mario
>
--
-----------------------------------------------------
Regards,
Waruna Ranasinghe
blog: http://warunapw.blogspot.com
twitter: http://twitter.com/warunapww
http://lk.linkedin.com/in/waruna
www.facebook.com/waruna.ranasinghe