You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2008/05/05 08:51:49 UTC
svn commit: r653312 -
/synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
Author: ruwan
Date: Sun May 4 23:51:49 2008
New Revision: 653312
URL: http://svn.apache.org/viewvc?rev=653312&view=rev
Log:
Fixed the Filter mediator syntax in the Configuration Language
Modified:
synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml?rev=653312&r1=653311&r2=653312&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml Sun May 4 23:51:49 2008
@@ -1445,6 +1445,22 @@
succeeds, the filter mediator will execute the enclosed mediators in
sequence.
</p>
+ <p>One could also use this mediator to handle the failure case as well, in which case the
+ configuration would be as follows
+ </p>
+<pre xml:space="preserve"> <filter (source="xpath" regex="string") | xpath="xpath">
+ <then [sequence="string"]>
+ mediator+
+ </then>
+ <else [sequence="string"]>
+ mediator+
+ </else>
+ </filter></pre>
+ <p>In this case the filter condition remains as earlier and the succeeded messages will be
+ mediated using the the set of mediators enclosed in the then element in sequence, while
+ failed messages will be mediated using the set of mediators enclosed in the else element
+ in sequence
+ </p>
<p/>
<h4>
<a name="switch" id="switch">Switch</a>