Association template and its published versions
The Lifecycle
Transitions Explained
The transition rows describe stored state changes, their checks and their recorded effects. A queue receive, provider outcome and staff action can reach different lifecycle boundaries.
What Cannot Happen
Archived templates cannot be republished; an owner save creates another active template. Publishing history cannot be removed to restore a draft-only template.
Concurrency and Timing
Draft replacement guards the expected version in its database update. The active-owner unique index resolves competing first creations. Marketing version storage returns identical content and refuses a changed publication for that message version. Publication checks state and optional expected version before locking and does not recheck them under the lock; owned draft changes can commit before publication.