Sunday, April 7, 2019

How to verify whether a property value is null or not

Assume you have a scenario where want to do something based on the fact whether a property value is null or not.

Using the Filter mediator, this is possible. See below for the configuration.

<filter regex="^\d+$" xpath="get-property('memberId')">
   <then>//Do something</then>
       

<else>//Do something else</else>
     

</filter>