| Namespace | http://www.mulesoft.org/schema/mule/esper |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/esper/current/mule-esper.xsd (View Schema) |
| Schema Version | 1.0 |
| Minimum Mule Version | 3.3 |
A Mule Module for Esper, a GPL licensed complex event processing engine.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Sources | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Listens for events matching the specified query statement.
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Filters messages that match the supplied EPL query.
| |||||||||||
Sends events to an Esper event stream.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:esper="http://www.mulesoft.org/schema/mule/esper"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/esper
http://www.mulesoft.org/schema/mule/esper/current/mule-esper.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| The location of the Esper config file. | |||||||||||
Filters messages that match the supplied EPL query. The EPL query must return a Boolean value.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. The event to be injected into the event stream. This is useful if your filter statement relies on the event being injected into the stream beforehand. | Object | */* | |||
| The EPL statement | String | */* | UTF-8 | ||
| The key of the result to evaluate from the query | String | */* | UTF-8 | ||
The SourceCallback
|
SourceCallback | */* |
Sends events to an Esper event stream.
Events can be Java objects, Maps or an XMLNode. All event types must be registered in the
Esper configuration.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| The event to be injected into the event stream. | Object | */* | |||
Optional. The name of the event in the case of a Map payload.
|
String | */* | UTF-8 |
Listens for events matching the specified query statement.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| The Esper statement to select events from a stream. | String | */* | UTF-8 | ||
| The callback to be called when a message is received | SourceCallback | */* |