ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert" <boisv...@intalio.com>
Subject Re: Hi, Problem with copy / assign
Date Fri, 17 Aug 2007 18:06:50 GMT
On 8/17/07, Prasanna Rajaperumal <prasanna@soa-matrix.com> wrote:
>
> I know I am doing something wrong in the basics. Can you please hint me at
> it.
>
>       <assign name="Assign1">
>          <copy>
>             <from>
>                <literal>done</literal>
>             </from>
>             <to>$PhoneBookBPELOperationOut1.part1/newElement</to>
>          </copy>
>       </assign>
>
> I am getting this error.
>
> 21:46:00,265 DEBUG [ODEService] Fault response message:
> {http://schemas.xmlsoap.org/ws/2004/03/business-process/}selectionFailure
> ERROR - GeronimoLog.error(108) | Error processing response for MEX
> {MyRoleMex#hqejbhcnphr2ikl18e88n0 [Client hqejbhcnphr2ikl18e88m
> x] calling {
> http://soamatrix.com/bpel/PhoneBookBPEL}PhoneBookBPELService.PhoneBookBPELO
> peration(...)} org.apache.axis2.AxisFault:
> {http://schemas.xmlsoap.org/ws/2004/03/business-process/}selectionFailureNo
> results for expression: { OXPath10Expression
> $PhoneBookBPELOperationOut1.part1/newElement}



To assign data into "newElement", you must first create it, like this:

<assign name="Assign1">
    <copy>
        <from>
            <literal><newElement/></literal>
        </from>
        <to>$PhoneBookBPELOperationOut1.part1</to>
    </copy>
</assign>


or combine both assignments in a single <copy>:

<assign name="Assign1">
    <copy>
        <from>
            <literal>
                <newElement>done</newElement>
            </literal>
        </from>
        <to>$PhoneBookBPELOperationOut1.part1</to>
    </copy>
</assign>

cheers,
alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message