workflows.workflow.uw_workflow.yml 2.07 KB
Newer Older
1 2 3
langcode: en
status: true
dependencies:
4
  config:
5
    - node.type.uw_ct_blog
6
    - node.type.uw_ct_catalog_item
7
    - node.type.uw_ct_contact
8
    - node.type.uw_ct_event
9
    - node.type.uw_ct_news_item
10
    - node.type.uw_ct_profile
11
    - node.type.uw_ct_sidebar
12
    - node.type.uw_ct_site_footer
13
    - node.type.uw_ct_web_page
14 15 16 17 18 19 20 21 22 23
  module:
    - content_moderation
id: uw_workflow
label: 'UW workflow'
type: content_moderation
type_settings:
  states:
    draft:
      published: false
      default_revision: false
24 25
      label: Draft
      weight: -10
26 27 28
    published:
      published: true
      default_revision: true
29 30
      label: Published
      weight: -10
31 32
    uw_wf_archived:
      published: false
33
      default_revision: true
34 35
      label: Archived
      weight: -10
36 37 38
    uw_wf_needs_review:
      published: false
      default_revision: false
39 40
      label: 'Needs Review'
      weight: -10
41 42 43 44 45
    uw_wf_unpublished:
      published: false
      default_revision: true
      label: Unpublished
      weight: 0
46 47
  entity_types:
    node:
48
      - uw_ct_blog
49
      - uw_ct_catalog_item
50
      - uw_ct_contact
51 52
      - uw_ct_event
      - uw_ct_news_item
53
      - uw_ct_profile
54
      - uw_ct_sidebar
55
      - uw_ct_site_footer
56
      - uw_ct_web_page
57
  transitions:
58
    archived:
l26yan's avatar
l26yan committed
59
      label: Archive
60 61
      from:
        - draft
62
        - published
l26yan's avatar
l26yan committed
63
        - uw_wf_archived
64 65
        - uw_wf_needs_review
      to: uw_wf_archived
66 67
      weight: 3
    draft:
l26yan's avatar
l26yan committed
68
      label: 'Create draft'
69
      from:
70 71 72
        - draft
        - published
        - uw_wf_archived
73 74
        - uw_wf_needs_review
      to: draft
75 76
      weight: 0
    needs_review:
l26yan's avatar
l26yan committed
77
      label: 'Submit for review'
78
      from:
79 80 81
        - draft
        - published
        - uw_wf_archived
82 83 84
        - uw_wf_needs_review
      to: uw_wf_needs_review
      weight: 1
85
    published:
l26yan's avatar
l26yan committed
86
      label: Publish
87
      from:
88
        - draft
89
        - published
90 91
        - uw_wf_archived
        - uw_wf_needs_review
92
      to: published
93
      weight: 2
94 95 96 97 98 99
    unpublish:
      label: Unpublish
      from:
        - uw_wf_unpublished
      to: draft
      weight: 4
100
  default_moderation_state: draft