2 Replies Latest reply on Mar 6, 2008 11:55 AM by Meghana Joglekar

    How to access variable of 'Element' type, Element being comp

    Meghana Joglekar Novice


      I have been trying to deploy a BPEL process that extracts number value from a variable declared as ElementType. The defintion of the element is

      <xs:element name="parent">
       <xs:element name="child" type="xs:string" />

      The variable declaration for this element is
       <variable name="parent" element="tns:parent" />

      The expression I want to evaluate is something like this -
       <assign name="Calculate2">
       <from expression="bpws:getVariableData('parent', ?, '/tns:parent/tns:child)" />
       <to part="parameters" query="/ns8:UpdateItem/ns8:item/ns8:title" variable="aewebservices70_UpdateItem-UpdateItem" />

      The reason I have provided '?' is there is no part name. I know you can directly write 'variable' and 'query' attributes but what if I want to use operator on that query e.g
      number(/tns:parent/tns:child) div SomeOtherParent/SomeOtherChild

      How does the BPEL look in that case? Assuming 'SomeOtherParent' is another element declared as complex type? I am using BPEL 1.1 specification.