Asset Service Commands
Command inventory
| Group | Operations | Events / integration |
|---|---|---|
| Inventory | Create, update descriptive details, make available, delete | Create/update/available have no lifecycle integration event; all record local evidence; delete is status-limited. |
| Request/approval | Create request, reject, apply workflow decision | Requested, Rejected, or Assigned event; optional workflow HTTP start/verification. |
| Custody | Assign/issue, return | Assigned or Returned event. |
| Incident/end-of-life | Mark damaged, mark lost, retire | LostOrDamaged or Retired event. |
| Documents | Upload, list-adjacent command service, download, remove reference | Synchronous Document Service; audit/timeline for mutation; no lifecycle event. |
| Compatibility | Save create/update, request, status mapping, delete | Delegates to canonical commands after shape/status conversion. |
Each mutation loads or creates the aggregate, applies application/domain validation, records evidence, and saves through IUnitOfWork. Domain validation becomes an invalid result; missing records become not found; state/duplicate/managed-workflow conflicts become conflicts. Workflow start occurs after initial request persistence, so it is not atomic with the remote workflow call. Document storage occurs before the local reference save and has no distributed transaction.
Requires confirmation
Production ownership, authorization governance, operational policy, and future architecture require confirmation where the source does not enforce them.
Source References
microservices/src/asset-service/Application/Commands/AssetCommands.csmicroservices/src/asset-service/Application/Commands/DocumentCommands.csmicroservices/src/asset-service/Application/Compatibility/AssetCompatService.cs