Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I tried your scenario and got the same output as yours. Then looked deep into it as this was a basic functionality and as I thought I've done something similar before.</p> <p>The issue here is in the type of the property. For some strange reason <code>INTEGER</code> does not work here. You need to have <code>DOUBLE</code> or <code>STRING</code>. Even if you have string, it will correctly cast it when you do a comparison as in here. The following worked for me.</p> <pre><code>&lt;inSequence&gt; &lt;log level="full"/&gt; &lt;property xmlns:m0="http://tempuri.org/" name="CParam" expression="//m0:SumSerViseResponse/m0:SumSerViseResult" scope="default" type="DOUBLE"/&gt; &lt;log level="custom"&gt; &lt;property name="CParam" expression="$ctx:CParam"/&gt; &lt;/log&gt; &lt;property name="propertyA" value="4.0" scope="default" type="DOUBLE"/&gt; &lt;log level="custom"&gt; &lt;property xmlns:ns="http://org.apache.synapse/xsd" name="propertyA" expression="get-property('propertyA')"/&gt; &lt;/log&gt; &lt;property name="propertyCompare" expression="$ctx:CParam &gt; get-property('propertyA')" scope="default" type="BOOLEAN"/&gt; &lt;log level="custom"&gt; &lt;property name="propertyCompare" expression="get-property('propertyCompare')"/&gt; &lt;/log&gt; &lt;filter xpath="$ctx:CParam &gt; get-property('propertyA')"&gt; &lt;then&gt; &lt;send&gt; &lt;endpoint&gt; &lt;address uri="http://localhost:9000/services/SimpleStockQuoteService"/&gt; &lt;/endpoint&gt; &lt;/send&gt; &lt;/then&gt; &lt;else&gt; &lt;drop/&gt; &lt;/else&gt; &lt;/filter&gt; &lt;/inSequence&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload