[
http://jira.jboss.com/jira/browse/BPEL-277?page=comments#action_12374374 ]
Felipe Jensen Casado commented on BPEL-277:
-------------------------------------------
My process is 1.1 and you are totally right, Alejandro: It works perfectly, sorry. I had
also tried using a qname, but my mistake was writing the name of the part in the query,
instead of the name of the xsd element.
Thanks for the help and so this is closed.
Greetings.
message parts with the atribute element won't be accepted by
bpel
-----------------------------------------------------------------
Key: BPEL-277
URL:
http://jira.jboss.com/jira/browse/BPEL-277
Project: JBoss jBPM BPEL
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM BPEL 1.1 beta 3
Environment: Running Java sdk 1.5.0_11, Jboss AS 4.0.5 GA and ant 1.7 in SunOs
5.9
Reporter: Felipe Jensen Casado
Assigned To: Alejandro Guizar
Wsdl specification allows the use of the attribute element or type to refer to the XSD
definition of the part (Cf.
http://www.w3.org/TR/2001/NOTE-wsdl-20010315.html#_messages )
However, when using the following definitions:
<element name="EE">
<complexType>
<sequence>
<element name="usuario" type="xsd:string"/>
<element name="sistema" type="xsd:string"/>
</sequence>
</complexType>
</element>
<wsdl:message name="pruebaE">
<wsdl:part name="entrada" element="tns1:EE"/>
</wsdl:message>
<variable name="entradaPruebaE" messageType="BA:pruebaE"/>
<copy>
<from variable="nombres" />
<to variable="entradaPruebaElectrica" part="entrada"
query="/entrada/usuario"/>
</copy>
It will throw the following exception:
2007-08-28 14:45:28,291 DEBUG [org.jbpm.bpel.graph.scope.FaultActionHandler] handling
fault: org.jbpm.bpel.gra
ph.exe.ScopeInstance@1f8ab0d[name=<null>,token=/,state=performingPrimaryActivity,id=0]
org.jbpm.bpel.graph.exe.BpelFaultException:
org.jbpm.bpel.graph.exe.FaultInstance@4a1535[name={http://schemas.
xmlsoap.org/ws/2004/03/business-process/}selectionFailure,id=0]
at
org.jbpm.bpel.sublang.xpath.XPathEvaluator.createNode(XPathEvaluator.java:100)
at
org.jbpm.bpel.sublang.xpath.XPathEvaluator.selectOrCreateNodes(XPathEvaluator.java:79)
In the addressed part of XPathEvaluator, the following can be read:
if (!(node instanceof Element)) {
// cannot create node for a non-element parent
throw new BpelFaultException(BpelConstants.FAULT_SELECTION_FAILURE);
}
This won't happen when using a type especification.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira