The overall architecture
How are responsibility for the change order and external processing divided between modules and processes?
Local consistency determines the change order API boundary. Document and notification processing runs separately for deferred work. Drawing reference, scope of work, cost review and approval record are modules within the API. Contractors send change orders and scope descriptions to the API; large drawings reside in the external drawing archive. The API stores immutable document references, cost revisions and approvals relationally. Construction management checks drawing references, cost control reads approved amounts, and approvers confirm the same content. Document retrieval and delivery occur outside the short approval transaction. Drawing and cost evidence are both prerequisites for approval.
Starting point A drawing change creates a new revision requiring review.
Assumptions for the example case
Original fictional design: an internal approval workflow for a change order with frozen drawings and costs. The illustrative internal threshold is 500000 cents. Up to and including this amount, one approver is sufficient; above it, this case requires a second approver. All figures and test targets are illustrative assumptions.
Runtime components and datastores
Runtime topology
Change-order system
Approval binds the drawing revision, scope of work and cost revision.
Domain responsibilities within the API
Internal responsibilities
Modules remain within the API process.
Map responsibilities to runtime components
| Domain task | Runtime | Responsibility |
|---|---|---|
| Drawing reference | Construction change order API | Binds the work to the relevant immutable drawing revision. |
| Scope of work | Construction change order API | Describes the additional agreed work. |
| Cost review | Construction change order API | Calculates the submitted line items traceably. |
| Approval record | Construction change order API | Binds the required approval to the drawing, scope of work and costs. |
| Document and notification processing | Separate background process | Processes stored work and external feedback. |
| Drawing archive | External boundary | Provides or confirms the evidence agreed for this case. |
Drawing reference
- Runtime
- Construction change order API
- Responsibility
- Binds the work to the relevant immutable drawing revision.
Scope of work
- Runtime
- Construction change order API
- Responsibility
- Describes the additional agreed work.
Cost review
- Runtime
- Construction change order API
- Responsibility
- Calculates the submitted line items traceably.
Approval record
- Runtime
- Construction change order API
- Responsibility
- Binds the required approval to the drawing, scope of work and costs.
Document and notification processing
- Runtime
- Separate background process
- Responsibility
- Processes stored work and external feedback.
Drawing archive
- Runtime
- External boundary
- Responsibility
- Provides or confirms the evidence agreed for this case.
The drawing archive remains outside the approval commit
The drawing archive remains outside the approval commit.
Approval applies to the exact drawing revision, scope of work and cost revision. Every business change creates a new version requiring review.
Change order revisions, plan references, approvals, and cost records must represent the same valid state. Your exercise identifies the input and expected result.
- Alternative considered
- A separate service for each module spreads the guarantee across additional network boundaries: approval binds the exact drawing revision, scope of work and cost revision, and every business change creates a new version requiring review.
- Trade-off
- Common schema changes require coordinated releases.
- Reassess
- A substantially different load for document and notification processing, or separate ownership, calls for a new division of runtime components.
Try it yourself
Classify drawing reference, document and notification processing, and drawing archive as a module, process or external system. Justify the authoritative datastore.
A hint for your attempt
A domain responsibility becomes a process only when it has its own execution unit.
Compare with a possible solution
- Boundaries
- Drawing reference is a module in the change order API; document and notification processing is a separate process; the drawing archive is external.
- Storage
- The datastore for change-order revisions, drawing references, approvals and cost records holds authoritative evidence. Approval binds the exact drawing revision, scope of work and cost revision; every business change creates a new version requiring review. The shared transaction protects this relationship; external responses remain separate evidence.
Apply to your project
Which planned service boundary would distribute a currently local guarantee across the network?