[ 
https://issues.apache.org/jira/browse/SYNAPSE-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576864#action_12576864
 ] 

Ruwan Linton commented on SYNAPSE-234:
--------------------------------------

I think I found a better solution to support this keeping the backward 
compatibility.

the filter syntax which is there currently will behave as it is where as if you 
want to use the else behavior for the filter then the configuration should be 
as follows;

<filter (source="xpath" regex="string") | xpath="xpath">
   <then [sequence="string"]>
      mediator+
   </then>
   <else [sequence="string"]>
      mediator+
   </else>
</filter> 

I think this will solve the backward compatibility issue as well as supporting 
the else behavior.

Thanks,
Ruwan 

> Support for an ELSE for the Filter (IF) mediator
> ------------------------------------------------
>
>                 Key: SYNAPSE-234
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-234
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Asankha C. Perera
>            Assignee: Ruwan Linton
>
> Would be better to be able to specify what needs to be done if a filter 
> condition evaluates to false

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to