morphir-examples

Approvals

Sample model based on a real-world system that facilitates pre-approval of short sale transactions. The system is made up of two stateful applications: one for managing the inventory for each product (InventoryApp) and one from managing the lifecycle of batch requests from clients (LocateListApp).

LocateListApp depends on InventoryApp to execute each individual request. The dependency and mapping between the two apps is defined in ACL.elm

Stateful Apps

Stateful apps are parameterized by 4 different types that describe how they interact with the external world and how they manage their internal state. These are the following: