How to evaluate simply type element in complex type?

For example I define a complex type in schema like:

  <xsd:complexType name="tComplex">
    <xsd:sequence>
      <xsd:element name="boolElement" type="xsd:boolean"/>
    </xsd:sequence>
  </xsd:complexType>

And I have some variable/property define in BPEL and WSDL like:

<variable name="complexVar" type="tComplex">
   <from><literal>
      <complexVar><boolElement>true</boolElement></complexVar>
   </literal></from>
</variable>

<variable name="simplyVar" type="xsd:boolean>
   <from><literal>true</literal></from>
</variable>

<vprop:property name="boolProp" type="xsd:boolean" />

<vprop:propertyAlias propertyName="boolProp" type="xsd:boolean">
   <vprop:query>boolElement</vprop:query>
</vprop:propertyAlias>

Can some one tell me what is the expected result of follow condition expression and why? I am current confuse by it.

<condition>$complexVar/boolElement</condition>

<condition>$complexVar/boolElement/text()</condition>

<condition>$simplyVar</condition>

<condition>bpel:getVariableProperty("complexVar","boolProp")</condition>

 

thanks a lot in advance.

Henry Wang

I think the first and last condition will return a element, not the content. Not sure how that evaluates, I guess false?

I think all of the others should evaluate to true.

What results are you seeing with which implementation? Can you provide a full BPEL instance for download?

Bernd

--
Chief Architect (R&D) SEEBURGER.com
http://bernd.eckenfels.net

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I