 |
Rules
Based on the prototype designed on the previous step, we can formalize the wizard navigation rules. First step, Identification, will have two transitions:
- Identification-to-Details transition: If the name and password are valid, and the user selected "Details" checkbox, the wizard moves to the Details step.
- Identification-to-Confirmation transition: If the name and password are valid, but the user did not select "Details" checkbox, the wizard moves to the Confirmation step.
- If either the name or password is invalid, the wizard does not move from this step.
The Details step is optional, here the user sets up a security question. Only one outgoing transition is defined for this step:
- Details-to-Confirmation transition: if security question is answered (not empty), then the wizard moves to the Confirmation step.
- Otherwise, the wizard does not advance from this step.
The third and the last step is Confirmation. It has no outgoing transitions, so after this step is finished, the wizard data is applied to main application domain model, and the wizard object is disposed.
Navigation rules are not used for backward transition. If a user wants to move to a previous step, and previous step exists, then wizard moves one step back, using actual traverse path.
|