[
https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tammo van Lessen closed ODE-322.
--------------------------------
Resolution: Not A Problem
This is the normal BPEL behaviour. If you want to add elements to an array, you
need to use doXSLTransform(...) or our custom xpath functions.
> Add element to variable instead of overwriting it
> -------------------------------------------------
>
> Key: ODE-322
> URL: https://issues.apache.org/jira/browse/ODE-322
> Project: ODE
> Issue Type: Wish
> Affects Versions: 1.2
> Reporter: Johannes Waltsgott
> Priority: Trivial
> Labels: test
> Fix For: 2.0
>
> Attachments: AccountManagementFaculty.wsdl,
> AccountManagementUniversity.wsdl, deploy.xml, PersonManagement.wsdl,
> PortalArtifacts.wsdl, Portal.bpel, Portal.wsdl
>
>
> Hi,
> I'm using a BPEL-Process with an ForEach-loop(lines 514-581), which gets an
> dynamically filled Array as input ($getLanguageSubscriptionsResponse), than
> performs as many <invoke>s as there are elements in the array and should
> write the result of the <invoke> to the global response message
> (getStudentDetailsResponse) of the process after each invocation. The problem
> is, in the ForEach-loop, it just copies the result to the global response
> message (lines 565 - 578) once and in the later repeats it just overwrites
> the former values in the global response message. The invocation itself works
> fine so far.
> Example:
> global response message after initialization (lines: 391 - 421):
> <getStudentDetailsResponse>
> ...
> <languages>
> <language>
> <languageName/>
> <languageId/>
> </language>
> </languages>
> ...
> </getStudentDetailsResponse>
> The ForEach-Loop delivers for 2 inputs for both a name and an id.
> This is how the global response message should look like:
> <getStudentDetailsResponse>
> ...
> <languages>
> <language>
> <languageName>Name 1</languageName>
> <languageId>1</languageId>
> </language>
> <language>
> <languageName>Name 2</languageName>
> <languageId>2</languageId>
> </language>
> </languages>
> ...
> </getStudentDetailsResponse>
> Instead it lokkes like this:
> <getStudentDetailsResponse>
> ...
> <languages>
> <language>
> <languageName>Name 2</languageName>
> <languageId>2</languageId>
> </language>
> </languages>
> ...
> </getStudentDetailsResponse>
> It just overwrites the first <language> entry with the second one instead of
> adding the second element after the first one.
> Please find the BPEL and WSDL files attached, all lines refer to Portal.bpel
> Maybe its more a xpath question than a BPEL question...
> Any hints are appreciated - thanks very much in advance...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira