# Workflow and State Testing

> Test whether the server holds an invoice workflow when steps are skipped, repeated or taken out of order, and whether links end when they should.

Canonical: https://codelivly.com/rooms/workflow-and-state-testing
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 15 min |
| XP | 940 |

Applications present a business process as a fixed order of screens, but the server has to enforce that order on every request. This room walks the Ledgerline invoice lifecycle: skipped and repeated steps, edits and deletes against the current state, approval rules and separation of duties, and payment links that should stop working. You learn to model operations against states, design one case with its control and way back, prove a refusal from the response, the stored record and the log, recognise a deliberate design decision, and say plainly what was only reviewed in code. Every lesson has a terminal exercise on realistic exports and scenario questions that need judgment.

## Lessons

1. Steps That Can Be Skipped or Repeated (35 min)
2. Order, State and Server Side Checks (40 min)
3. Approval Flows and Separation of Duties (35 min)
4. Time Limits, Expiry and Reuse (40 min)
5. Guided Lab: Walk the Invoice Lifecycle (45 min)

## Related

- [Learning path: Business Logic and Race Condition Testing](https://codelivly.com/learning-paths/business-logic-and-race-condition-testing)
- [All rooms](https://codelivly.com/rooms)
