Wednesday, July 13, 2011

Mule - Wildcard Filter

Wildcard filter also matches patterns with the message payload. It is much similar to Reg-ex filter but only processes simple patterns and does not accept regular expressions in the pattern.

Refer to Reg-ex filter for further reference.

        <service name="ProcessInput">
            <inbound>
                <vm:inbound-endpoint path="processInputIN" />
            </inbound>
            <component class="org.mybusiness.components.ProcessInputComponent" />
            <outbound>
                <filtering-router>
                    <vm:outbound-endpoint path="computeLengthIN" />
                    <and-filter>
                        <wildcard-filter pattern="*the name*"/>
                        <payload-type-filter expectedType="java.lang.String"/>
                    </and-filter>
                </filtering-router>
                <logging-catch-all-strategy />
            </outbound>
        </service>

No comments:

Post a Comment