Agila
  1. Agila
  2. AGILA-3

bpws:getVariableData should return a node, not only text

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1
    • Fix Version/s: 0.1
    • Component/s: BPEL Engine
    • Labels:
      None

      Description

      Suppose there is a variable 'userIDList' containing the next value in Xindice.

      <?xml version="1.0"?> <message><list><User><firstName>Dae-Joong</firstName><lastName>Kim</lastName></User><User><firstName>John</firstName><lastName>Grisham</lastName></User></list></message>

      In the while activity, to copy n'th User information to a new variable 'newUser', I tried this.

      <assign>
      <copy>
      <from variable="userIDList" query="message/list/User[1]"/>
      <to variable="newUser" part="User"/>
      </copy>
      </assign>

      It worked well. The newUser variable had the first User element.

      Next, I tried this.

      <assign>
      <copy>
      <from expression="bpws:getVariableData('userIDListVar', 'list/User[1]')"/>
      <to variable="newUser" part="User"/>
      </copy>
      </assign>

      In this case, The newUser variable had a only string as following.

      <message><User><firstName>Dae-Joong</firstName><lastName>Kim</lastName></User></message>

      I found that this happened because bpws:getVariableData() returns only a string not nodes.

        Activity

        Matthieu Riou created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Matthieu Riou
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development