Skip to content

Instantly share code, notes, and snippets.

@thejimbirch
Last active July 9, 2024 21:33
Show Gist options
  • Save thejimbirch/7cd09cc10b782f265fbb200a8c946306 to your computer and use it in GitHub Desktop.
Save thejimbirch/7cd09cc10b782f265fbb200a8c946306 to your computer and use it in GitHub Desktop.

Drupal content moderation workflow

This is a basic comtent moderation workflow chart with basic role permissions.

This is meant to be an example of the standard moderation states and transitions.

Both moderation states and transitions can be edited in Drupal and this chart.

sequenceDiagram
    participant Deleted
    participant Archived (Unpublished)
    participant Draft (Unpublished)
    note over Draft (Unpublished): Initial state
    participant Published (Published)
    rect rgb(23, 56, 30)
    note right of Archived (Unpublished): Content editor
    Draft (Unpublished)->>Draft (Unpublished): Create New Draft
    Published (Published)->>Draft (Unpublished): Create New Draft
    Archived (Unpublished)->>Draft (Unpublished): Restore to Draft
    end
    rect rgb(25, 23, 56)
    note right of Archived (Unpublished): Content publisher/Admin<br>All of the above plus:
    Draft (Unpublished)->>Published (Published): Publish
    Archived (Unpublished)->>Published (Published): Restore
	Published (Published)->>Archived (Unpublished): Archive
    Archived (Unpublished)->>Deleted: Delete
    Draft (Unpublished)->>Deleted: Delete
    Published (Published)->>Deleted: Delete
    end
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment