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.

 

Reply via email to