[jboss-user] [JBoss jBPM] - BPEL: Creating arrays and unbounded entities.

fresno do-not-reply at jboss.com
Thu Jul 26 09:08:03 EDT 2007


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 at 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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067800#4067800

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067800



More information about the jboss-user mailing list