ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Coogan (JIRA)" <j...@apache.org>
Subject [jira] Created: (ODE-582) SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into
Date Thu, 16 Apr 2009 23:25:14 GMT
SelectionFailure when using XPath functions insert-as-first-into and insert-as-last-into

                 Key: ODE-582
                 URL: https://issues.apache.org/jira/browse/ODE-582
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
         Environment: Ode 1.X
            Reporter: Jon Coogan
         Attachments: TestInsertAsFirstInto.zip, TestInsertAsLastInto.zip

I'm having trouble with the XPath functions insert-as-first-into and insert-as-last-into.
 I get a selectionFailure if I try to insert a child into a parent that does not yet contain
other children.  This happens with both insert-as-first-into and insert-as-last-into.  

As an example, say I have the following elements/types:

   <element name="RecordSet" type="tns:RecordSetType"/> 
    <complexType name="RecordSetType">
            <element maxOccurs="unbounded" minOccurs="0" ref="tns:Record"/>
    <element name="Record" type="tns:RecordType"/>
     <complexType name="RecordType">
            <element maxOccurs="1" minOccurs="1" name="SomeValue" type="string"/>
            <element maxOccurs="1" minOccurs="1" name="AnotherValue" type="string"/>

So RecordSet can contain 0 or more Records.  If I try to insert a Record into an empty RecordSet
(0 Records) I get a selectionFailure.  I have to initialize the RecordSet variable with at
least one dummy Record before it will work.

See the attached test processes.  There is one for insert-as-first-into and one for insert-as-last
into.  The process input is ignored.  The process should return a recordset (see above) that
contains a single record.  Instead, I get a selectionFailure fault at runtime.  I can work
around this by Initializing the RecordSet with a dummy record prior to doing the insert.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message