Scheduler Architecture
- Scheduler Consists of 2 main components
- Behaviours
- Scheduler Component
- Behaviours consist of 2 components
- App Behaviour – Task Time boxing, Scheduled Report
- Form Behaviour – Event Behaviour, Calendar Behaviour.
- Scheduler Component consists of multiple auxiliary methods to process, execute and schedule all behaviours.
- Scheduler Component uses Event table and checks for events every minute to be executed.
Event Model
Column | Description |
properties | Properties of that event i.e event id, event type, mapped parameters, handler. |
formobject | Associated formobject of that event |
status | Completed or scheduled |
schedule_date | Next schedule date |
reminder_date | Next reminder date |
callback_module | Module of callback function |
callback_function | Function to be executed on scheduled date |
created | Created date |
updated | Updated date |
Handlers
- Handlers are functions used by behaviours.
Handler | Usage |
---|---|
scheduler_notify | To send email, app notification to users |
trigger_workflow | To execute workflow and assign task to user |
merge_report | To merge all data and create report |
0 Comments