Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-498

Handle Variable References In XPath Predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.2
    • BPEL Runtime
    • None

    Description

      As reported on the mailing list,

      I found another BUG-like problem in ODE 2.0 Build #87 (2009-1-8 2:25:04). That is: the counterName variable can't be used in the position expression of XPath as normal variables are. For example, the following BPEL piece
      <forEach counterName="i" parallel="no">
      <startCounterValue>1</startCounterValue>
      <finalCounterValue>2</finalCounterValue>
      <scope>
      <assign>
      <copy>
      <from>$i</from>
      <to>$output0.body/xsd0:field1[position()=$i]</to> <!-- note this line -->
      </copy>
      </assign>
      </scope>
      </forEach>
      will incur such ERROR in ODE:

      ERROR - GeronimoLog.error(104) | Assignment Fault:

      {http://docs.oasis-open.org/wsbpel/2.0/process/executable}

      selectionFailure,lineNo=149,faultExplanation=

      {http://docs.oasis-open.org/wsbpel/2.0/process/executable}

      selectionFailure: No results for expression:

      {OXPath10Expression $output0.body/xsd0:field1[position()=$i]}

      Attachments

        1. evaluate-embedded-variable-reference.patch
          5 kB
          Karthick Sankarachary

        Issue Links

          Activity

            People

              karthick Karthick Sankarachary
              boisvert Alex Boisvert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: