You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Johannes Waltsgott (JIRA)" <ji...@apache.org> on 2008/06/29 15:45:45 UTC

[jira] Created: (ODE-322) Add element to variable instead of overwriting it

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.


[jira] Updated: (ODE-322) Add element to variable instead of overwriting it

Posted by "Johannes Waltsgott (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Waltsgott updated ODE-322:
-----------------------------------

    Attachment: AccountManagementUniversity.wsdl

> 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, AccountManagementUniversity.wsdl, deploy.xml, PersonManagement.wsdl, Portal.bpel, Portal.wsdl, PortalArtifacts.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.


[jira] Updated: (ODE-322) Add element to variable instead of overwriting it

Posted by "Johannes Waltsgott (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Waltsgott updated ODE-322:
-----------------------------------

    Attachment: Portal.wsdl
                Portal.bpel
                deploy.xml

> 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, AccountManagementUniversity.wsdl, deploy.xml, PersonManagement.wsdl, Portal.bpel, Portal.wsdl, PortalArtifacts.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.


[jira] Updated: (ODE-322) Add element to variable instead of overwriting it

Posted by "Johannes Waltsgott (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Waltsgott updated ODE-322:
-----------------------------------

    Attachment: PersonManagement.wsdl

> 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, AccountManagementUniversity.wsdl, deploy.xml, PersonManagement.wsdl, Portal.bpel, Portal.wsdl, PortalArtifacts.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.


[jira] Updated: (ODE-322) Add element to variable instead of overwriting it

Posted by "Johannes Waltsgott (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Waltsgott updated ODE-322:
-----------------------------------

    Attachment: PortalArtifacts.wsdl

> 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, AccountManagementUniversity.wsdl, deploy.xml, PersonManagement.wsdl, Portal.bpel, Portal.wsdl, PortalArtifacts.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.


[jira] Updated: (ODE-322) Add element to variable instead of overwriting it

Posted by "Johannes Waltsgott (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Waltsgott updated ODE-322:
-----------------------------------

    Attachment: AccountManagementFaculty.wsdl

> 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.