Data and states
An unknown outcome keeps the licence allocated. Which conditions enforce this rule?
The service may already have issued the entitlement.
Starting point commandKey returns the existing A-52.
Assumptions for the example case
A fictional library with one licensed copy and reading devices that verify entitlements online. Every new read checks the current entitlement; offline use is outside the scope. All quantities, thresholds and operational targets in this design are illustrative assumptions.
Allocated until evidence arrives
Allocation and alternative terminal paths
T-52 has 1:n loans; X-52 belongs to at most one active or unresolved loan at a time.
State transitions and completion
| Starting point | Condition and effect | Subsequent state |
|---|---|---|
| Requested | Copy allocated atomically | Licence pending |
| Requested | No free copy | Rejected |
| Licence pending | Matching licence confirmation | Active |
| Licence pending | The service confirms that no entitlement was issued. | Failed; copy available |
| Active | Return requested | Return pending |
| Return pending | Online entitlement revocation confirmed | Returned |
| Active | Expiry instant reached; online checks deny access | Expired |
Requested
- Condition and effect
- Copy allocated atomically
- Subsequent state
- Licence pending
Requested
- Condition and effect
- No free copy
- Subsequent state
- Rejected
Licence pending
- Condition and effect
- Matching licence confirmation
- Subsequent state
- Active
Licence pending
- Condition and effect
- The service confirms that no entitlement was issued.
- Subsequent state
- Failed; copy available
Active
- Condition and effect
- Return requested
- Subsequent state
- Return pending
Return pending
- Condition and effect
- Online entitlement revocation confirmed
- Subsequent state
- Returned
Active
- Condition and effect
- Expiry instant reached; online checks deny access
- Subsequent state
- Expired
An unknown outcome keeps the licence allocated.
Release only after confirmed non-issuance or access revocation.
The service may already have issued the entitlement.
Confirmed non-issuance → Failed, copy available. Licence pending keeps the copy allocated until matching evidence arrives.
- Alternative considered
- Releasing on timeout can create overlapping entitlements.
- Trade-off
- Waiting time reduces availability.
- Reassess
- A service without status queries requires a manual process.
Try it yourself
Draw the paths for confirmed non-issuance and an unknown issuance outcome.
A hint for your attempt
The service may already have issued the entitlement.
Compare with a possible solution
- Confirmed
- Confirmed non-issuance → Failed, copy available.
- Unknown
- Licence pending keeps the copy allocated until matching evidence arrives.
Apply to your project
What is the equivalent of retaining allocation while the outcome is unknown in your project?