
π Religious & Spiritual Organisations Β· State Machine
The states of a prasad order sent by post to a devotee, from payment to delivery, including returns for wrong addresses.
Drawing diagramβ¦
State machine for a prasad order: Placed, Paid, Packed in the daily batch, Dispatched by India Post with a tracking number, InTransit, Delivered. If the address is wrong it becomes Returned, then Reshipped after the devotee corrects the address or Refunded.
stateDiagram-v2 [*] --> Placed Placed --> Paid: Payment received Placed --> Cancelled: Payment failed Paid --> Packed: Daily batch Packed --> Dispatched: Tracking number sent by SMS Dispatched --> InTransit InTransit --> Delivered InTransit --> Returned: Address not found Returned --> Reshipped: Address corrected Returned --> Refunded: No reply in 15 days Reshipped --> InTransit Delivered --> [*] Refunded --> [*] Cancelled --> [*]
A digital platform for a large temple trust: darshan and seva bookings, online donations with tax receipts, prasad orders, accommodation and crowd information.
How a devotee books a special darshan slot online: choosing a date, ID verification, holding the slot during payment and getting a QR ticket for entry.
How an online donation to a religious trust is processed, from choosing a cause to issuing an 80G tax receipt and filing donor details with the tax department.
The systems used to manage crowds during a big festival or yatra: cameras, turnstiles and sensors in the field, a command centre, and alerts to police and volunteers.
Tables for a religious trust: devotees, donations to causes, receipts, seva bookings and volunteer shifts.
How a community kitchen plans daily meals: expected footfall, ingredient stock, donations in kind, cooking batches and leftovers going to shelters.