1 Reply Latest reply: Oct 16, 2013 1:15 AM by Albin RSS

    Need help with accesing variable with xpath.

    user11343978

      Hi All,

       

      I need help with xpath in "Switch" BPEL construct. Switch is used to compare value assigned to output vairable and follow one path for "Deny" and another for "Approve". The following is data type for output variable.

       

      <element name="processResponse">

           <complexType>

                <sequence>

                     <element name="result" type="string"/>

                <sequence>

           <complexType>

      </element>

       

      The following expressions in Switch statement throw lava.lang.Exception. It error is xpath internal error".

      x20:compare('Deny',$outputvariable.payload/client:result)

      x20:compare('Deny',bpws:getVariableData('outputvariable','payload','/client:processResponse/client:result')

       

      It works with x20:compare('Deny','Deny'). So I assumed it must be accessing the variable.

       

      Any help greatly appreciated.

       

      Thanks,

      Satish