2 Replies Latest reply on Jul 31, 2007 7:00 AM by Felipe

    BPEL: Creating arrays and unbounded entities.

    Felipe Newbie

      Hi all:

      I'm using jbpm.bpel.Beta3 and I've come across a problem. Is it possible at all to create and use an array-like structure?
      Here's my experience: The use of SOAP arrays is not allowed in this version (like v.gr.

      <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/>
      throws:
      org.jbpm.bpel.BpelException: encoded use not supported
       at org.jbpm.bpel.integration.client.SoapClient.writeRpcBody(SoapClient.java:212)
       at org.jbpm.bpel.integration.client.SoapClient.writeMessage(SoapClient.java:199)
      

      So I tried using an xsd structure, like this:
      <complexType name="ListaString">
       <sequence>
       <element maxOccurs="unbounded" minOccurs="1" name="elemento" type="xsd:string"/>
       </sequence>
       </complexType>

      However, when creating the variable, it will only allow me to create a single item, as this:
      <copy> <!-- nillables -->
       <from expression="'PRIMITIVA2'"/>
       <to variable="entradaPrueba" part="entrada" query="/entrada/primitivas/elemento[2]"/>
       </copy>

      throws this exception:
      org.jbpm.bpel.graph.exe.BpelFaultException: org.jbpm.bpel.graph.exe.FaultInstance@1b8dc93[name={http://schemas
      .xmlsoap.org/ws/2004/03/business-process/}selectionFailure,id=0]
       at org.jbpm.bpel.sublang.xpath.XPathEvaluator.createNode(XPathEvaluator.java:91)
       at org.jbpm.bpel.sublang.xpath.XPathEvaluator.selectOrCreateNodes(XPathEvaluator.java:79)
      


      Any ideas?
      Thanks a lot in advance
      Felipe