Event Validator
From RuleCore Support
Description
Each inbound user event first passes through the Event Validator, which ensures the event is a well-formed XML and (optionally) compliant to any XML schemas or DTDs. Valid events en up on the Valid Events Stream, events that fail to comply with the basic format checks end up on the Invalid Events Stream.
Mule Configuration
The following excerpt from the Mule configuration defines the Event Validator component:
<!-- Ensure that the incoming event message is a valid XML. Valid events are forwarded to the ValidEvents endpoint. Forward invalid events to the InvalidEvents endpoint for further error processing. --> <mule-descriptor name="EventValidator" implementation="com.rulecore.mule.components.EventReceiver"> <inbound-router> <catch-all-strategy className="com.rulecore.mule.misc.RuleCoreCatchAllStrategy"> <global-endpoint name="InvalidEvents"/> </catch-all-strategy> <global-endpoint name="InboundEvents"/> <router className="org.mule.routing.inbound.SelectiveConsumer" > <filter className="org.mule.routing.filters.xml.IsXmlFilter"/> </router> </inbound-router> <outbound-router> <router className="org.mule.routing.outbound.FilteringOutboundRouter"> <global-endpoint name="ValidEvents"/> </router> </outbound-router> </mule-descriptor>