ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jackson, Douglas" <djack...@ugs.com>
Subject RE: BPEL question
Date Mon, 13 Nov 2006 22:22:50 GMT

Hi Assaf!

According to the BPEL Spec (1.1) for bpws:getVariableData
('variableName', 'partName'?, 'locationPath'?):

"If the given locationPath selects a node set of a size other than one
during execution, then the standard fault bpws:selectionFailure MUST be
thrown by a compliant implementation."
Since yyy does not exist wouldn't it cause an exception?

This seems to contradict your assertion that it should evaluate to

-----Original Message-----
From: Assaf Arkin [mailto:arkin@intalio.com] 
Sent: Friday, November 10, 2006 4:57 PM
To: ode-user@incubator.apache.org
Subject: Re: BPEL question

On 11/10/06, Jackson, Douglas <djackso2@ugs.com> wrote:
> <switch xmlns:xxx="http://xxxns">
>      <case condition="bpelx:getVariableData('xxx-msg', 'xxx-part',
> '/xxx:xxx/yyy') ???">
>           do something...
> </switch>
> Won't the xpath for the query above fail since the yyy element is not
> there?


An XPath expression can be asked to return a node set, boolean, integer
string. In this case, the XPath expression is expected to return a
value. For an expression like this, the value is true if there's one or
nodes, zero if no node can be selected.


Thanks in advance,
> -Doug.

View raw message