| name | orchestration-driven-soa |
| description | Use when implementing orchestration-driven service-oriented architecture: central workflow orchestration across services, explicit process models, compensations, service contracts, long-running transactions, and governance boundaries. |
Orchestration-Driven SOA
Use this skill when a central process coordinator is the clearest way to manage cross-service workflows.
Fit
Use for long-running business processes, compliance-heavy flows, and integrations where visibility and control matter more than local autonomy.
Avoid when simple choreography is sufficient or a central orchestrator would become a god service.
Agent Workflow
- Read
graphify-out/GRAPH_REPORT.md.
- Run
graphify query "orchestration driven service oriented architecture workflow compensation".
- Identify the end-to-end business process and participating services.
- Model the workflow states before code.
- Implement the orchestrator as a thin state machine, not a business blob.
- Add compensation and timeout behavior.
Target Shape
codebase/workflows/
<workflow>/
states
orchestrator
participants
compensations
tests/
codebase/services/*/contract
Implementation Rules
- Orchestrator owns process state, sequencing, timeouts, and compensation.
- Domain services own local business invariants and data.
- Participant contracts are explicit and versioned.
- Every remote step has timeout, retry, and compensation semantics.
- Avoid embedding service internals in the orchestrator.
Migration Steps
- Draw the workflow as states and transitions.
- Define participant ports/contracts.
- Implement a state store for workflow instances.
- Move cross-service sequencing into the orchestrator.
- Add compensating actions for partial failure.
- Add trace IDs across all participant calls.
Verification
graphify explain "orchestrator" should show workflow-to-contract dependencies, not service internals.
- Test happy path, participant failure, retry exhaustion, timeout, compensation failure, and resume after crash.
Output Contract
Return: workflow state model, participant contracts, orchestrator patch, compensation matrix, and verification evidence.