Hi Michiel,
I would go for option 2 and use scheduled events to trigger the microflow. In the current month, this could be a SE that runs often, like every minute, 5 minutes, hour etc based on your requirements.
A monthly scheduled event would be the last update to your report because after that last run it's no longer necessary to check previous months. After all, that's passed. Right?
Depends a bit on how realtime the result should be. If realtime is no issue use a ascheduled event that runs at the start of a new day. I would just proces all newly created events of the day before and update the reports accordingly.
If realtime is an issue you would indeed need event handlers. But you could use the event handler to trigger a java action in the background or schedule a task that does the update of the report data. That way it will not be heavy on your system.
Regards,
Ronald
Hi Michiel Arts
I would create a queue thats runs at the end of each event or event action. The queues run in the background and you can break them down to do one specific action.(Object orientation)
I would also use keys and foreign keys in all my entities not just mendix assiciations.
Why i say this:
Regards,
Patrick