[ 
https://issues.apache.org/jira/browse/ODE-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125135#comment-13125135
 ] 

Tammo van Lessen commented on ODE-944:
--------------------------------------

... and let's hope that Dieter is not wearing the "food critics" heat on, 
testing our BPEL knowledge :)

If I'm not mistaken, from-spec and to-spec must not select more than one node. 
Here are the related parts of the spec:

Page 60:
A to-spec MUST return an lvalue. If a to-spec does not return an lvalue then a 
bpel:selectionFailure MUST be thrown. An lvalue, in the context of XPath, is a 
node-list containing a single node from a variable or a partnerLink identified 
by the to-spec.

Page 61:
An optional <query> element may be used to select a value from the source or 
target variable or message part. The computed value of the query MUST be one of 
the following:
• a single XML information item other than a CII, for example, EII and AII
• a sequence of zero or more CIIs: this is mapped to a Text Node or a string in 
the XPath 1.0 data model

CII is Character Information Item, EII and AII stand for Element II / Attribute 
II.

But when looking at the code, I'd expect to get a different fault. Dieter, 
could you please set the log level to DEBUG for org.apache.ode.bpel.runtime and 
send us the logs?

Thanks,
  Tammo
                
> XPath Failure 
> --------------
>
>                 Key: ODE-944
>                 URL: https://issues.apache.org/jira/browse/ODE-944
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.5
>         Environment: Windows 7, Tomcat 7
>            Reporter: Dieter Roller
>
> The following code snippet results in a selection failure.
>  <assign name="B">
>         <copy>
>            <from>
>                <literal>
>                    <![CDATA[<Field>4711</Field>]]>
>                </literal>
>            </from>
>            <to variable="Output" part="message"/>
>         </copy>
>         <copy>
>            <from variable="Input" part="messageTwoFields">
>               <query>//Field1</query>
>            </from>
>            <to variable="Output" part="message">
>               <query>//Field</query>
>            </to>
>         </copy>
>     </assign>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to