Templates / SLA & timers / scheduled-report
Scheduled KPI Report
A timer start event runs this process every day. It queries the warehouse, renders the KPI report and mails it to the distribution list; when the query comes back empty — usually a late upstream load — it alerts the data team instead of sending an empty report.
Scenarios · 2
- Yesterday's KPIs are rendered and mailed query-kpis → render-report → distribute-report → report-sent
- An empty query alerts the data team query-kpis → alert-data-team → no-data
Job types · 4
-
chat-postAlert data team -
email-sendMail to distribution list -
report-renderRender report -
warehouse-queryQuery KPIs
Files · 2
- scheduled-report.bpmn Process model
- scheduled-report.bpmn.tests.json Test scenarios (runScenario format)
Every scenario passes on @bpmnkit/engine's runScenario in the
package's tests. casen template use scheduled-report [dir] writes the files above
into your project — see the templates guide for running
the scenarios and deploying.