ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jackson, Douglas" <djack...@ugs.com>
Subject BPEL question
Date Fri, 10 Nov 2006 22:12:52 GMT
Hi!

I have a BPEL question that is not specific to ode.

 

If I have an xml element or message in a variable, and it has an
optional field:

 

<xsd:element name="xxx" xmlns="http://xxxns">

    <xsd:complexType>

        <xsd:sequence>

             <xsd:element name="yyy" type="xsd:string" minOccurs="0"/>

        </xsd:sequence>

    </xsd:complexType>

</xsd:element>

 

and in my BPEL process I want to find out if that field is present in
that element, then

how would I write the BPEL:

 

 <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?

 

Thanks in advance,

-Doug.

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message