You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Jon Coogan (JIRA)" <ji...@apache.org> on 2008/11/17 20:53:44 UTC

[jira] Created: (ODE-426) ForEach counter variable can't be accessed by If statement

ForEach counter variable can't be accessed by If statement
----------------------------------------------------------

                 Key: ODE-426
                 URL: https://issues.apache.org/jira/browse/ODE-426
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
    Affects Versions: 1.2
            Reporter: Jon Coogan
         Attachments: TestForEachCounter.zip

See the attached test.

Here is a quick summary of what it does:

output = "Failed"
For counter = 1 to 10 {
     if (counter > 5) {
          output = "Worked"
     }
}

The test always returns "Failed."


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ODE-426) ForEach counter variable can't be accessed by If statement

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

Matthieu Riou resolved ODE-426.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3
         Assignee: Matthieu Riou

I've just committed a fix for this on the 1.X branch and on trunk. Hopefully it will help.

> ForEach counter variable can't be accessed by If statement
> ----------------------------------------------------------
>
>                 Key: ODE-426
>                 URL: https://issues.apache.org/jira/browse/ODE-426
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Jon Coogan
>            Assignee: Matthieu Riou
>             Fix For: 1.3
>
>         Attachments: TestForEachCounter.zip
>
>
> See the attached test.
> Here is a quick summary of what it does:
> output = "Failed"
> For counter = 1 to 10 {
>      if (counter > 5) {
>           output = "Worked"
>      }
> }
> The test always returns "Failed."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-426) ForEach counter variable can't be accessed by If statement

Posted by "Matthieu Riou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648713#action_12648713 ] 

Matthieu Riou commented on ODE-426:
-----------------------------------

I'm currently trying this. A first observation: it works if you use XPath 2.0.

> ForEach counter variable can't be accessed by If statement
> ----------------------------------------------------------
>
>                 Key: ODE-426
>                 URL: https://issues.apache.org/jira/browse/ODE-426
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Jon Coogan
>         Attachments: TestForEachCounter.zip
>
>
> See the attached test.
> Here is a quick summary of what it does:
> output = "Failed"
> For counter = 1 to 10 {
>      if (counter > 5) {
>           output = "Worked"
>      }
> }
> The test always returns "Failed."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ODE-426) ForEach counter variable can't be accessed by If statement

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

Jon Coogan updated ODE-426:
---------------------------

    Attachment: TestForEachCounter.zip

> ForEach counter variable can't be accessed by If statement
> ----------------------------------------------------------
>
>                 Key: ODE-426
>                 URL: https://issues.apache.org/jira/browse/ODE-426
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Jon Coogan
>         Attachments: TestForEachCounter.zip
>
>
> See the attached test.
> Here is a quick summary of what it does:
> output = "Failed"
> For counter = 1 to 10 {
>      if (counter > 5) {
>           output = "Worked"
>      }
> }
> The test always returns "Failed."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ODE-426) ForEach counter variable can't be accessed by If statement

Posted by "Jon Coogan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648767#action_12648767 ] 

Jon Coogan commented on ODE-426:
--------------------------------

Thank you.  I can confirm this on my end as well.  It does indeed work when I change it to XPath 2.0.

> ForEach counter variable can't be accessed by If statement
> ----------------------------------------------------------
>
>                 Key: ODE-426
>                 URL: https://issues.apache.org/jira/browse/ODE-426
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Jon Coogan
>         Attachments: TestForEachCounter.zip
>
>
> See the attached test.
> Here is a quick summary of what it does:
> output = "Failed"
> For counter = 1 to 10 {
>      if (counter > 5) {
>           output = "Worked"
>      }
> }
> The test always returns "Failed."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.