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 Attachments: AccountManagementFaculty.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. - You can reply to this email to add a comment to the issue online.