Distributed Systems, Nodejs, Node, Typescript, JavaScript.
setHandler(getStatusQuery, () => { return { state, deliveredAt, productId } }) When the order function receives the getStatusQuery, the function passed to setHandler is called, which returns the values of local variables. After the call to chargeCustomer succeeds, the state is changed to ’Paid’,