[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.bpel-designer] Use relative queries instead of absolute queries in XPath expressions ?

Hi,
I have a problem with the BPEL designer.

I just created a new BPEL process (synchronous process template). I want to assign the content of the input message to the output message.

I create an Assign action, and a new Copy.

When I choose "input -> payload -> input" (variable / part / element) in the from part of the copy, the designer generates an XPath query "/tns:input".
I wonder why an absolute query is created there instead of a relative query.


I think the context node in BPEL for XPath queries is the message part. If the query is an absolute query ("/tns:input") the node is searched from the document root (the message) and so the node "input" is not found.
If the query is relative ("tns:input"), the node is searched from the node context.


I think this is shown in the examples of the section 8.2.6 of the BPEL spec .

Is there a bug in the designer or did I misunderstand something in the spec ?


Regards, Guillaume Porcher