Templates / Approvals / expense-approval

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.

script tasktimer boundaryescalationfeelfinance
Open in editor Download .bpmn
casen template use expense-approval
small review approved rejected Total thereport Managerreview Financereview Returnreport toemployee Reimburseemployee Expense report submitted Over 100? 2 days without action Approved? Report rejected Reimbursed

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-notify Return report to employee
  • payment-reimburse Reimburse employee

Files · 2

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.