4 Replies Latest reply: Dec 31, 2012 8:13 AM by sheel123 RSS

    Passing List of values to Service Task

    859313
      Hi Everyone

      This problem is kind of strange for me, I searched a lot without success in finding a solution . I have a webservice method that one of its arguments a list of strings , now if this list has one value only the process works fine , but if it contains two or more values it give me the following error

      XPath query string returns multiple nodes. The assign activity part and query bpmn:getDataObject('InspectBO')/ns:fileName are returning multiple nodes. The assign activity part and query named in the error message returned multiple nodes. It should return single node.

      now here is the part of the process that fails

      <assignment>
      <extensionElements>
      <ns5:OracleExtensions>
      <ns5:DataAssignment operation="copy"/>
      </ns5:OracleExtensions>
      </extensionElements>
      <from xsi:type="tFormalExpression" language="http://www.w3.org/1999/XPath" xmlns:ns="http://xmlns.oracle.com/bpel/workflow/task" xmlns:bpmn="http://www.omg.org/bpmn20">bpmn:getDataObject('InspectBO')/ns:fileNames
      <extensionElements>
      <ns5:OracleExtensions>
      <ns5:Expression mode="simple"/>
      </ns5:OracleExtensions>
      </extensionElements>
      </from>
      <to xsi:type="tFormalExpression" language="http://www.w3.org/1999/XPath" xmlns:bpmn="http://www.omg.org/bpmn20">bpmn:getDataInput('initiateInspectionProcess')/documentsNamesList
      <extensionElements>
      <ns5:OracleExtensions>
      <ns5:Expression mode="simple"/>
      </ns5:OracleExtensions>
      </extensionElements>
      </to>
      </assignment>

      so this part bpmn:getDataInput('initiateInspectionProcess')/documentsNamesList refuses to accept more than one value at a time , even if the data association shows it as a list of strings : String[] : documentsNamesList[]

      the initiateInspectionProcess is coming from the signature of the webmethod ,I am using Jdeveloper 11.1.1.6.0

      How to solve this issue ?
      Thanks in advance.

      Regards