Hi folks,

Can we achieve the following functionality (or simillar) using the current
mediators?

<conditional>
  <if><script language="js">.........<script>
     <send><endpoint address="" /></send>
 </if>
  <if><script language="js">.........<script>
     <send><endpoint address="" /></send>
 </if>
 <else>
   <send><endpoint address="" /></send>
 </else>
</conditional>

If not, is there a value in having something like this? Here is my use case.


<transaction>
 <cardType>visa<cardType>
 <cardNumber>12343466<cardNumber>
 <amount>154.45<amount>
 <date>.......<date>
<transaction>

The logic is.

if (amount > 300)
{
  send to fraudScreeningService
}
else if (time > 21.00 or time < 8.00)
{
  send to fraudScreeningService
}
else
{
  send to my service.
}

Regards,

Rajith

Reply via email to