Expense Report Approval
Totals an expense report with a FEEL script, reimburses small reports straight away and sends the rest to the employee's manager. If the manager has not acted within two days an interrupting timer takes the review away and hands it to finance, so no report waits forever. Approved reports are paid; rejected ones go back to the employee.
Scenarios · 3
- A 45.50 report is reimbursed without review total-expenses → needs-review → reimburse → reimbursed
- A 640 report is approved by the manager manager-review → decision → reimburse → reimbursed
- A rejected report goes back to the employee manager-review → return-report → report-rejected
Job types · 2
-
employee-notifyReturn report to employee -
payment-reimburseReimburse employee
Files · 2
- expense-approval.bpmn Process model
- expense-approval.bpmn.tests.json Test scenarios (runScenario format)
Every scenario passes on @bpmnkit/engine's runScenario in the
package's tests. casen template use expense-approval [dir] writes the files above
into your project — see the templates guide for running
the scenarios and deploying.