Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpel-dev] Re: Why the generate literal xmls is defferent when call a variable Initializer and Why the generated query of vprop:propertyAlias has not namespace?

Someone can give some advices to me??
Thanks a lot!

Grid


2009/12/16 <bpel-dev-request@xxxxxxxxxxx>
Send bpel-dev mailing list submissions to
       bpel-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
       https://dev.eclipse.org/mailman/listinfo/bpel-dev
or, via email, send a message with subject or body 'help' to
       bpel-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
       bpel-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of bpel-dev digest..."


Today's Topics:

  1. The specification is unclear (Joni Lee)
  2. Why the generate literal xmls is defferent when call a
     variable Initializer? (grid qian)


----------------------------------------------------------------------

Message: 1
Date: Mon, 14 Dec 2009 13:08:30 -0800 (PST)
From: Joni Lee <webcokies@xxxxxxxxx>
Subject: [bpel-dev] The specification is unclear
To: bpel-dev@xxxxxxxxxxx
Message-ID: <396152.6870.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Would somebody please help me? The specification is unclear. Under 8.4.1 it says, selection results of copy operation cannot be multiple XML information items, while under 8.2.1 it says the xPath query can be: a collection of XML infoset items e.g. $myFooVar/lines/*

The * means the query selects multiple elements under $myFooVar/lines for the copy
------------------------------------------------------------------------------------------------
[8.4.1 Selection Result of Copy Operations]
"<copy>
operation must be an EII, AII or TII. Selection failure must be thrown
when the FROM-spec selects multiple XML information items..."
-------------------------------------------------------------------------------------------------
[8.2.1]
Evaluation of a WS-BPEL _expression_ or
query will yield one of the following:

a collection of XML infoset items e.g. $myFooVar/lines/*




-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/bpel-dev/attachments/20091214/00767dac/attachment.html

------------------------------

Message: 2
Date: Tue, 15 Dec 2009 14:44:35 +0800
From: grid qian <grid.qian@xxxxxxxxx>
Subject: [bpel-dev] Why the generate literal xmls is defferent when
       call a  variable Initializer?
To: bpel-dev@xxxxxxxxxxx
Cc: SMOSER@xxxxxxxxxx
Message-ID:
       <c506a79e0912142244x5de4d928ubb12e9be8eeb367e@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,
I met a problem about the bpel assign element.
When I add a copy to a assign element, the editor will prompt you to see if
you want to create an Initializer. If you click yes, you will get a Fixed
value to the To element.
But I found a problem:
if the To variable is like:
  <xs:element name='hello' type='tns:hello'/>
  <xs:complexType name='hello'>
   <xs:sequence>
    <xs:element name='name' type='xs:string'/>
   </xs:sequence>
  </xs:complexType>
the generated literal is like:
<bpel:literal xml:space="preserve">
<tns:hello xmlns:tns="http://eclipse.org/examples/ws/Hello" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
</tns:hello>
</bpel:literal>

But if the To variable is like:
  <xs:element name='hello' type='tns:hello'/>
  <xs:complexType name='hello'>
   <xs:sequence>
    <xs:element minOccurs='0' name='name' type='xs:string'/>
   </xs:sequence>
  </xs:complexType>
the generated literal is like:
<bpel:literal xml:space="preserve">
 <tns:hello xmlns:tns="http://jboss.com/examples/ws/Hello" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
    <name></name>
 </tns:hello>
</bpel:literal>


The first literal is not right for the ode runtime engine. The runtime
engine need the second literal.

I don't know why there is no <name></name> in the first literal. The
difference of the first and the second is just: minOccurs='0' in <xs:element
minOccurs='0' name='name' type='xs:string'/>.

Thanks!
Grid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/private/bpel-dev/attachments/20091215/3be543b6/attachment.html

------------------------------

_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev


End of bpel-dev Digest, Vol 50, Issue 9
***************************************


Back to the top