cm doc workflow pdq_workflow - NCIOCPL/cgov-digital-platform GitHub Wiki
- ID: pdq_workflow
- Type: content_moderation
stateDiagram-v2
%% Color coding for states
classDef published fill:#0074D9,color:#ffffff,stroke:#004b8c,stroke-width:1px
classDef unpublished fill:#FF851B,color:#000000,stroke:#cc5500,stroke-width:1px
classDef publishedDefault fill:#0074D9,color:#ffffff,stroke:#004b8c,stroke-width:6px
classDef unpublishedDefault fill:#FF851B,color:#000000,stroke:#cc5500,stroke-width:6px
classDef effectivelyPublished fill:#0074D9,color:#ffffff,stroke:#004b8c,stroke-width:4px,stroke-dasharray:5 5
classDef startState fill:#4CAF50,color:#ffffff,stroke:#2E7D32,stroke-width:2px
[*] --> draft
draft : "Draft"
published : "Published"
class draft startState
draft --> draft : "Create New Draft"
published --> draft : "Create New Draft"
draft --> published : "Publish"
published --> published : "Publish"
class published publishedDefault
class draft unpublished
class draft effectivelyPublished
Initial State: Draft (draft)
Legend:
- ■ Published states - Content is visible to all users
- ■ Unpublished states - Content is not publicly visible
- ■/■ Bold border - Default revision states (content becomes the default revision)
- ■ Dashed border - Effectively published states (content is available on the website due to workflow path)
- ■ Green - Initial state for new content
Entity Type | Bundle |
---|---|
node | pdq_cancer_information_summary |
node | pdq_drug_information_summary |
Transition ID | Label | From State | To State |
---|---|---|---|
create_new_draft | Create New Draft | draft, published | draft |
publish | Publish | draft, published | published |
Transition | From → To | Content Author | Content Editor | Image Manager | Advanced Editor | Blog Manager | Layout Manager | Site Admin | PDQ Importer | Admin UI | Content Previewer |
---|---|---|---|---|---|---|---|---|---|---|---|
Create New Draft | draft, published → draft | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
Publish | draft, published → published | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
✅ - Has permission | ❌ - Does not have permission
Generated on: 2025-07-10 12:33:46 EDT