synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Linton (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (SYNAPSE-234) Support for an ELSE for the Filter (IF) mediator
Date Sat, 08 Mar 2008 20:35:46 GMT

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

ruwan edited comment on SYNAPSE-234 at 3/8/08 12:35 PM:
---------------------------------------------------------------

In order to support this requirement, I would like to suggest the following configuration
for the Filter mediator

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

but this will lead to a compatibility issue, the only way that we can solve the issue without
breaking the compatibility is by disabling the else sequence inline specification.

That will lead to the following configuration, I would prefer the former though, this will
not break the compatibility; and the onFial sequence is always a referred sequence.

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

WDYT?

Thanks,
Ruwan

      was (Author: ruwan):
    In order to support this requirement, I would like to suggest the following configuration
for the Filter mediator

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

but this will lead to a compatibility issue, the only way that we can solve the issue without
breaking the compatibility is by disabling the else sequence inline specification.

That will lead to the following configuration, I would prefer the former though, this will
not break the compatibility; and the onFial sequence is always a referred sequence.

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

WDYT?

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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message