Hi Tammo,
Active Bpel already initialize the whole variable with literal.
I have this structure:
<bpel:assign name ="setParameters">
<bpel:copy>
<bpel:from>
<bpel:literal>
<ns:invokeAction
xmlns:ns="...">
<ns:actionName>...</ns:actionName>
<ns:compositionSessionID></ns:compositionSessionID>
<ns:baseServiceInstance>0</ns:baseServiceInstance>
<ns:properties>
<ns:propertyName>deviceID</ns:propertyName>
<ns:propertyValue></ns:propertyValue>
</ns:properties>
...
</ns:invokeAction>
</bpel:literal>
</bpel:from>
<bpel:to part="invokeAction" variable="ClickAndFindMessage"/>
</bpel:copy>
And then I have many <copy>...</copy> structure where I have the queries in
XPath.
Should I include every <property> within literal element?
Cheers,
Max
Tammo van Lessen wrote:
>
> Hi Massimiliano,
>
> did you initialize the whole variable with the literal? If you're just
> writing a subpart (indicated by an XPath), this subpart is most probably
> not existing and therefore resulting in a selection failure. I know that
> ActiveBPEL can automatically initialize variables. However, as this is
> not automatically possible in all cases (especially when dealing with
> optional elements, how many instances should be automatically created,
> should also subchildren be created?), we have decided to not implement
> it. In case people really request this freature we still can consider
> implementing it.
>
> Cheers,
> Tammo
>
> Massimiliano Giraldo wrote:
>> Hi all!
>>
>> When I try to execute a service, created for ActiveBpel, modified and
>> correctly deployed on Ode, I have this error:
>>
>> ERROR [ASSIGN] Assignment Fault:
>> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=43,faultExplanation=No
>> results for expression: {OXPath10Expression
>> bs:Properties[bs:PropertyName='deviceID']/bs:PropertyValue
>>
>> I read on the web (and in this mailing list too) that this error may be
>> generated by two reasons:
>> - the absense of <literal> element when I define the variable, before the
>> assignment.
>> - a problem of namespaces.
>> - different implementation of assignment between Active Bpel and Apache
>> Ode.
>>
>> In my bpel file, the variable is within <literal> and </literal> element,
>> with correct namespace.
>> The namespace of the query
>> "bs:Properties[bs:PropertyName='deviceID']/bs:PropertyValue" is correct
>> too.
>>
>> May be there another reason that can generate this error? Or was my
>> analysis
>> wrong?
>>
>> Thanks,
>> Max
>>
>> -----
>> http://www.pcguide.netsons.org http://www.pcguide.netsons.org
>
>
>
-----
http://www.pcguide.netsons.org http://www.pcguide.netsons.org
--
View this message in context:
http://www.nabble.com/Assignment-Fault---No-results-for-expression-tp18467494p18468317.html
Sent from the Apache Ode User mailing list archive at Nabble.com.