I'm new with JavaScript and Google App Maker and I have a doubt with a little Workflow to Approve Expense.
I have two models:
- Requests (Details of Request input by Widget)
| RequestedBy | TypeOfExpense | WhoApprove | WhoResponsableToExecute | Approved | Executed |
- TypeOfExpense (Inputed by Admin via Widget)
| Type | ApproverOfExpense | RensableToExecute |
Scenario: A user creates a request choosing type of expense >> According Type >> Approver are notified - After approved >> RespnsableToExeute are notified - Affter Execution >> User is notified.
What feature I can use to associate (or trigger) in Request with ApproverOfExpense (from TypeOfExpense) and RensableToExecute (from TypeOfExpense) when an user input the Requisition of expense.
I'm think using onCreate events in Data Source but the app can are very slow.