feat(example-doc-vault): design document entity with state machine lifecycle #10
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of parent story #9.
🎯 Goal
Implement the core domain entities and lifecycle state machine for the Document Vault reference application.
📋 Specification
Documentmodel:title(StringProperty),organizationId(StringProperty),state(StringProperty),fileUri(ObjectUri),financialAmount(NumberProperty).'documents'.@quatrain/state-machine:DRAFT,IN_REVIEW,APPROVED,REJECTED,ARCHIVED.DRAFT➔IN_REVIEW), only approver can approve/reject.AuditLogmodel for immutable transition history:'audit_logs'.targetUri(ObjectUri),action(StringProperty),actorId(StringProperty),timestamp(DateProperty).