This sample is an application for detecting members walking in the vicinity of a registered store and issuing them with coupons that have a time limit.
The application for this service consists of the definition information, which is the part to be processed by the CEP engine, and the master data, which is to be used by the rules. Sample event data and an event sender sample program are also supplied for checking the operation of the application.
The following is an overview of the coupon delivery service contained in the sample application.
Entities
The main entities of the service are as follows:
The coupon delivery service
Registered service members
Registered service stores
Overview of the coupon delivery service
Process flow of the assumed service is as follows:
Location information of the registered members is periodically sent to the service from their smartphones.
The registered stores send a request to issue coupons usable during a specific time to the service.
Once the service receives this request, it will issue the coupons to the members walking around the stores.
In the sample, the event sender sample program is used to send sample event data instead of actual registered users and stores sending events, and the performance is checked using CEP engine logs.
Data type
Data handled by the service is as follows:
Event data
Location information (location information event)
Contains information such as member IDs, IDs of the area where the member is currently at, and the member status (walking, moving on train etc.).
Coupon issue request (coupon issue event)
Contains information such as store IDs, coupon IDs, and delivery target age groups.
Master data
Member information (member master data)
Contains information such as member IDs and age groups.
Store information (store master data)
Contains information such as store IDs and IDs of the area where the store is located.