[
https://issues.apache.org/jira/browse/ODE-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthieu Riou resolved ODE-138.
-------------------------------
Resolution: Fixed
Assignee: Matthieu Riou
That's fixed in the trunk. It would have worked with XPath 2.0 but there was a
bug in the way lvalue variables are resolved in our XPath 1.0 implementation.
I've also added this little counter example as a test for further reference.
> Swap-style assignment does not work in some sitations
> -----------------------------------------------------
>
> Key: ODE-138
> URL: https://issues.apache.org/jira/browse/ODE-138
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.0-incubating
> Environment: svn tip, Mac OS X 10.4.9, JDK 1.5
> Reporter: Paul R. Brown
> Assignee: Matthieu Riou
> Fix For: 1.1
>
>
> The following block of code:
> <b:assign>
> <b:copy>
> <b:from>$counter.value+1</b:from>
> <b:to>$counter.value</b:to>
> </b:copy>
> </b:assign>
> Does not change the value of $counter.value (which is an xsd:int).
> See issue #137 for the process that contains this snippet.
> Stepping through the assignment in the debugger, it appears that
> ASSIGN::replaceContent does not have the desired effect.
> Altering the process to use the form:
> <b:assign>
> <b:copy>
> <b:from>$counter.value+1</b:from>
> <b:to variable="counter" part="value" />
> </b:copy>
> </b:assign>
> works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.