Database Reference
In-Depth Information
Then, it sends an approval that creates
Level 1 Approval
, an application called
Ap-
pForApprovalsLevel1
and, after the
Approve
or
Deny
button is clicked, it creates a
new message that is sent back to the saga; the saga handles the messages. Depending on
the return message, it will either call the
IHandleMessages<Ap-
proveRequestCommand>
or
IHandleMessages<DenyRequestCommand>
handler. The saga will be pulled up by the bus, since we used mapping code in this ex-
ample to map the messages to
RequestId
.
We can pull up the saga that matches the message and route it based on some logic, in this
case, the cost, or return it to the originating client. The saga may contain most of the ori-
ginal message, so all of it doesn't need to be propagated through the messages.