January 2018
Beginner to intermediate
312 pages
7h 22m
English
The state machine approach is perfect for modeling our order-placing workflow, so with that in hand, let’s now model the details of each step.
Let’s start with validation. In the earlier discussion, we documented the “ValidateOrder” substep like this:
| | substep "ValidateOrder" = |
| | input: UnvalidatedOrder |
| | output: ValidatedOrder OR ValidationError |
| | dependencies: CheckProductCodeExists, CheckAddressExists |
We’ll assume that we’ve defined the input and output types (UnvalidatedOrder and ValidatedOrder) in the same way as in the discussion earlier. In addition to the input, we can see that the substep has two dependencies, one to check that a product code exists and one to check that ...
Read now
Unlock full access