I am developing an application with Esper where I need to create a complex event from fundamental events and enrich the event with information that is stored in an external model. As I am new to Esper I was wondering if there is a better (in terms of performance) approach than writing a pattern, attach a listener and then build and enrich the complex event within the listener and send the event via sendEvent-function. Maybe it is even possible to use the insert into EVENTNAME approach,.. but I am not sure how to du the enriching ...?
As an example: Several sensors are attached to a person and fire events with position etc. These events are to be composed to one PersonEvent and enriched by the name, etc. Also a bit unelegant seems to me that I need to create a pattern for each person.
I am looking forward to your advise and ideas very much. Tried to find something on this in the internet, but most of the sources are concerned with more simple approaches.
Cheers,
Chaoz