Преглед изворни кода

updated admin views to use workflows

Bachir Soussi Chiadmi пре 6 година
родитељ
комит
304d37dd23
28 измењених фајлова са 782 додато и 214 уклоњено
  1. 1 1
      sites/default/config/sync/core.base_field_override.node.evenement.status.yml
  2. 1 1
      sites/default/config/sync/core.base_field_override.node.page.status.yml
  3. 20 18
      sites/default/config/sync/core.entity_form_display.node.evenement.default.yml
  4. 18 16
      sites/default/config/sync/core.entity_form_display.node.page.default.yml
  5. 9 0
      sites/default/config/sync/core.entity_view_display.node.evenement.default.yml
  6. 9 0
      sites/default/config/sync/core.entity_view_display.node.page.default.yml
  7. 22 0
      sites/default/config/sync/field.field.node.evenement.field_workflow_generic.yml
  8. 22 0
      sites/default/config/sync/field.field.node.page.field_workflow_generic.yml
  9. 22 0
      sites/default/config/sync/field.storage.node.field_workflow_generic.yml
  10. 1 1
      sites/default/config/sync/node.type.page.yml
  11. 3 0
      sites/default/config/sync/user.role.admin.yml
  12. 2 0
      sites/default/config/sync/user.role.anonymous.yml
  13. 2 0
      sites/default/config/sync/user.role.authenticated.yml
  14. 1 0
      sites/default/config/sync/user.role.collectionneur.yml
  15. 2 1
      sites/default/config/sync/user.role.invite.yml
  16. 3 0
      sites/default/config/sync/user.role.root.yml
  17. 454 176
      sites/default/config/sync/views.view.content.yml
  18. 10 0
      sites/default/config/sync/workflow.state.generique_creation.yml
  19. 10 0
      sites/default/config/sync/workflow.state.generique_masque.yml
  20. 10 0
      sites/default/config/sync/workflow.state.generique_publie.yml
  21. 17 0
      sites/default/config/sync/workflow.transition.generique_creation_masque.yml
  22. 17 0
      sites/default/config/sync/workflow.transition.generique_creation_publie.yml
  23. 10 0
      sites/default/config/sync/workflow.transition.generique_masque_masque.yml
  24. 17 0
      sites/default/config/sync/workflow.transition.generique_masque_publie.yml
  25. 17 0
      sites/default/config/sync/workflow.transition.generique_publie_masque.yml
  26. 10 0
      sites/default/config/sync/workflow.transition.generique_publie_publie.yml
  27. 14 0
      sites/default/config/sync/workflow.workflow.generique.yml
  28. 58 0
      sites/default/config/sync/workflow_access.role.yml

+ 1 - 1
sites/default/config/sync/core.base_field_override.node.evenement.status.yml

@@ -14,7 +14,7 @@ required: false
 translatable: false
 default_value:
   -
-    value: 0
+    value: 1
 default_value_callback: ''
 settings:
   on_label: Activé

+ 1 - 1
sites/default/config/sync/core.base_field_override.node.page.status.yml

@@ -14,7 +14,7 @@ required: false
 translatable: false
 default_value:
   -
-    value: 0
+    value: 1
 default_value_callback: ''
 settings:
   on_label: Activé

+ 20 - 18
sites/default/config/sync/core.entity_form_display.node.evenement.default.yml

@@ -6,11 +6,13 @@ dependencies:
     - field.field.node.evenement.body
     - field.field.node.evenement.field_date
     - field.field.node.evenement.field_page_liee
+    - field.field.node.evenement.field_workflow_generic
     - node.type.evenement
   module:
     - datetime
     - path
     - text
+    - workflow
 id: node.evenement.default
 targetEntityType: node
 bundle: evenement
@@ -18,7 +20,7 @@ mode: default
 content:
   body:
     type: text_textarea_with_summary
-    weight: 121
+    weight: 8
     settings:
       rows: 9
       summary_rows: 3
@@ -27,18 +29,18 @@ content:
     region: content
   created:
     type: datetime_timestamp
-    weight: 10
+    weight: 3
     region: content
     settings: {  }
     third_party_settings: {  }
   field_date:
-    weight: 122
+    weight: 9
     settings: {  }
     third_party_settings: {  }
     type: datetime_default
     region: content
   field_page_liee:
-    weight: 123
+    weight: 10
     settings:
       match_operator: CONTAINS
       size: 60
@@ -46,16 +48,22 @@ content:
     third_party_settings: {  }
     type: entity_reference_autocomplete
     region: content
+  field_workflow_generic:
+    weight: 7
+    settings: {  }
+    third_party_settings: {  }
+    type: workflow_default
+    region: content
   langcode:
     type: language_select
-    weight: 2
+    weight: 1
     region: content
     settings:
       include_locked: true
     third_party_settings: {  }
   path:
     type: path
-    weight: 30
+    weight: 6
     region: content
     settings: {  }
     third_party_settings: {  }
@@ -63,26 +71,19 @@ content:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 15
-    region: content
-    third_party_settings: {  }
-  status:
-    type: boolean_checkbox
-    settings:
-      display_label: true
-    weight: 120
+    weight: 4
     region: content
     third_party_settings: {  }
   sticky:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 16
+    weight: 5
     region: content
     third_party_settings: {  }
   title:
     type: string_textfield
-    weight: -5
+    weight: 0
     region: content
     settings:
       size: 60
@@ -90,11 +91,12 @@ content:
     third_party_settings: {  }
   uid:
     type: entity_reference_autocomplete
-    weight: 5
+    weight: 2
     settings:
       match_operator: CONTAINS
       size: 60
       placeholder: ''
     region: content
     third_party_settings: {  }
-hidden: {  }
+hidden:
+  status: true

+ 18 - 16
sites/default/config/sync/core.entity_form_display.node.page.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.page.field_page_type
     - field.field.node.page.field_son
     - field.field.node.page.field_visuel
+    - field.field.node.page.field_workflow_generic
     - image.style.thumbnail
     - node.type.page
   module:
@@ -16,6 +17,7 @@ dependencies:
     - image
     - path
     - text
+    - workflow
 third_party_settings:
   field_group:
     group_tabs:
@@ -24,7 +26,7 @@ third_party_settings:
         - group_media
         - group_infos
       parent_name: ''
-      weight: 1
+      weight: 0
       format_type: tabs
       format_settings:
         id: ''
@@ -66,7 +68,7 @@ third_party_settings:
       children:
         - field_page_type
         - langcode
-        - status
+        - field_workflow_generic
       parent_name: group_tabs
       weight: 4
       format_type: tab
@@ -94,7 +96,7 @@ content:
     region: content
   created:
     type: datetime_timestamp
-    weight: 3
+    weight: 2
     region: content
     settings: {  }
     third_party_settings: {  }
@@ -134,6 +136,12 @@ content:
     third_party_settings: {  }
     type: image_image
     region: content
+  field_workflow_generic:
+    weight: 6
+    settings: {  }
+    third_party_settings: {  }
+    type: workflow_default
+    region: content
   langcode:
     type: language_select
     weight: 4
@@ -151,7 +159,7 @@ content:
     region: content
   path:
     type: path
-    weight: 6
+    weight: 5
     region: content
     settings: {  }
     third_party_settings: {  }
@@ -159,21 +167,14 @@ content:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 5
+    weight: 4
     region: content
     third_party_settings: {  }
-  status:
-    type: boolean_checkbox
-    settings:
-      display_label: true
-    weight: 5
-    third_party_settings: {  }
-    region: content
   sticky:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 4
+    weight: 3
     region: content
     third_party_settings: {  }
   title:
@@ -185,17 +186,18 @@ content:
       placeholder: ''
     third_party_settings: {  }
   translation:
-    weight: 7
+    weight: 6
     region: content
     settings: {  }
     third_party_settings: {  }
   uid:
     type: entity_reference_autocomplete
-    weight: 2
+    weight: 1
     settings:
       match_operator: CONTAINS
       size: 60
       placeholder: ''
     region: content
     third_party_settings: {  }
-hidden: {  }
+hidden:
+  status: true

+ 9 - 0
sites/default/config/sync/core.entity_view_display.node.evenement.default.yml

@@ -6,9 +6,11 @@ dependencies:
     - field.field.node.evenement.body
     - field.field.node.evenement.field_date
     - field.field.node.evenement.field_page_liee
+    - field.field.node.evenement.field_workflow_generic
     - node.type.evenement
   module:
     - datetime
+    - options
     - text
     - user
 id: node.evenement.default
@@ -40,6 +42,13 @@ content:
     third_party_settings: {  }
     type: entity_reference_label
     region: content
+  field_workflow_generic:
+    weight: 4
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    type: list_default
+    region: content
   links:
     weight: 0
     region: content

+ 9 - 0
sites/default/config/sync/core.entity_view_display.node.page.default.yml

@@ -7,10 +7,12 @@ dependencies:
     - field.field.node.page.field_page_type
     - field.field.node.page.field_son
     - field.field.node.page.field_visuel
+    - field.field.node.page.field_workflow_generic
     - node.type.page
   module:
     - file
     - image
+    - options
     - text
     - user
 id: node.page.default
@@ -41,6 +43,13 @@ content:
     third_party_settings: {  }
     type: image
     region: content
+  field_workflow_generic:
+    weight: 4
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    type: list_default
+    region: content
   links:
     weight: 3
     region: content

+ 22 - 0
sites/default/config/sync/field.field.node.evenement.field_workflow_generic.yml

@@ -0,0 +1,22 @@
+uuid: 7bc6ec8f-4727-4137-95ed-4b117c35e025
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_workflow_generic
+    - node.type.evenement
+  module:
+    - workflow
+id: node.evenement.field_workflow_generic
+field_name: field_workflow_generic
+entity_type: node
+bundle: evenement
+label: Workflow
+description: ''
+required: true
+translatable: true
+default_value:
+  - {  }
+default_value_callback: ''
+settings: {  }
+field_type: workflow

+ 22 - 0
sites/default/config/sync/field.field.node.page.field_workflow_generic.yml

@@ -0,0 +1,22 @@
+uuid: 451a4036-630b-4c32-bb10-fc0753de72db
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_workflow_generic
+    - node.type.page
+  module:
+    - workflow
+id: node.page.field_workflow_generic
+field_name: field_workflow_generic
+entity_type: node
+bundle: page
+label: Workflow
+description: ''
+required: true
+translatable: false
+default_value:
+  - {  }
+default_value_callback: ''
+settings: {  }
+field_type: workflow

+ 22 - 0
sites/default/config/sync/field.storage.node.field_workflow_generic.yml

@@ -0,0 +1,22 @@
+uuid: 54c0e494-2cd6-4ac9-8efa-7661c5ffd001
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+    - workflow
+id: node.field_workflow_generic
+field_name: field_workflow_generic
+entity_type: node
+type: workflow
+settings:
+  workflow_type: generique
+  allowed_values_function: workflow_state_allowed_values
+  allowed_values: {  }
+module: workflow
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 1 - 1
sites/default/config/sync/node.type.page.yml

@@ -13,6 +13,6 @@ name: Page
 type: page
 description: 'Generic page with wysiwyg'
 help: ''
-new_revision: false
+new_revision: true
 preview_mode: 1
 display_submitted: false

+ 3 - 0
sites/default/config/sync/user.role.admin.yml

@@ -9,6 +9,7 @@ is_admin: null
 permissions:
   - 'access administration pages'
   - 'access any corpus_documents workflow_transion overview'
+  - 'access any generique workflow_transion overview'
   - 'access files overview'
   - 'access toolbar'
   - 'access user profiles'
@@ -20,6 +21,7 @@ permissions:
   - 'create enregistrement content'
   - 'create evenement content'
   - 'create fil content'
+  - 'create generique workflow_transition'
   - 'create page content'
   - 'edit any autre_son content'
   - 'edit any enregistrement content'
@@ -39,6 +41,7 @@ permissions:
   - 'revert fil revisions'
   - 'revert page revisions'
   - 'schedule corpus_documents workflow_transition'
+  - 'schedule generique workflow_transition'
   - 'translate any entity'
   - 'use text format wysiwyg'
   - 'view autre_son revisions'

+ 2 - 0
sites/default/config/sync/user.role.anonymous.yml

@@ -12,3 +12,5 @@ permissions:
   - 'access content'
   - 'access devel information'
   - 'access kint'
+  - 'create corpus_documents workflow_transition'
+  - 'create generique workflow_transition'

+ 2 - 0
sites/default/config/sync/user.role.authenticated.yml

@@ -12,4 +12,6 @@ permissions:
   - 'access content'
   - 'access devel information'
   - 'access kint'
+  - 'create corpus_documents workflow_transition'
+  - 'create generique workflow_transition'
   - 'use text format wysiwyg'

+ 1 - 0
sites/default/config/sync/user.role.collectionneur.yml

@@ -11,6 +11,7 @@ permissions:
   - 'create corpus_documents workflow_transition'
   - 'create enregistrement content'
   - 'create fil content'
+  - 'create generique workflow_transition'
   - 'edit any enregistrement content'
   - 'edit any fil content'
   - 'edit own enregistrement content'

+ 2 - 1
sites/default/config/sync/user.role.invite.yml

@@ -6,4 +6,5 @@ id: invite
 label: Invité
 weight: -5
 is_admin: null
-permissions: {  }
+permissions:
+  - 'create generique workflow_transition'

+ 3 - 0
sites/default/config/sync/user.role.root.yml

@@ -9,6 +9,7 @@ is_admin: null
 permissions:
   - 'access administration pages'
   - 'access any corpus_documents workflow_transion overview'
+  - 'access any generique workflow_transion overview'
   - 'access content'
   - 'access content overview'
   - 'access contextual links'
@@ -78,6 +79,7 @@ permissions:
   - 'create enregistrement content'
   - 'create evenement content'
   - 'create fil content'
+  - 'create generique workflow_transition'
   - 'create page content'
   - 'create url aliases'
   - 'delete all revisions'
@@ -135,6 +137,7 @@ permissions:
   - 'revert fil revisions'
   - 'revert page revisions'
   - 'schedule corpus_documents workflow_transition'
+  - 'schedule generique workflow_transition'
   - 'select account cancellation method'
   - 'switch users'
   - 'synchronize configuration'

+ 454 - 176
sites/default/config/sync/views.view.content.yml

@@ -16,6 +16,8 @@ dependencies:
     - field.storage.node.field_page_type
     - field.storage.node.field_son
     - field.storage.node.field_visuel
+    - field.storage.node.field_workflow
+    - field.storage.node.field_workflow_generic
     - image.style.thumbnail
     - node.type.autre_son
     - node.type.enregistrement
@@ -32,9 +34,11 @@ dependencies:
     - datetime
     - image
     - node
+    - options
     - taxonomy
     - text
     - user
+    - workflow
 _core:
   default_config_hash: YIwhIF9MSP1E_HMam6MrYeti_UqMXQiLDMjDsPFKK8s
 id: content
@@ -91,52 +95,43 @@ display:
           description: ''
           columns:
             node_bulk_form: node_bulk_form
-            field_visuel: field_visuel
-            type: title
-            field_page_type: title
             title: title
-            field_son: title
+            status: title
+            field_workflow_generic: title
+            operations: title
             field_date: field_date
             term_node_tid: term_node_tid
+            field_page_liee: field_page_liee
             name: name
             changed: changed
-            status: title
-            operations: title
           info:
             node_bulk_form:
               align: ''
               separator: ''
               empty_column: false
               responsive: ''
-            field_visuel:
-              sortable: false
+            title:
+              sortable: true
               default_sort_order: asc
               align: ''
-              separator: ''
+              separator: '<br/>'
               empty_column: false
               responsive: ''
-            type:
-              sortable: false
+            status:
+              sortable: true
               default_sort_order: asc
               align: ''
               separator: ''
               empty_column: false
               responsive: ''
-            field_page_type:
+            field_workflow_generic:
               sortable: false
               default_sort_order: asc
               align: ''
               separator: ''
               empty_column: false
               responsive: ''
-            title:
-              sortable: true
-              default_sort_order: asc
-              align: ''
-              separator: '<br/>'
-              empty_column: false
-              responsive: ''
-            field_son:
+            operations:
               align: ''
               separator: ''
               empty_column: false
@@ -153,6 +148,11 @@ display:
               separator: ''
               empty_column: false
               responsive: ''
+            field_page_liee:
+              align: ''
+              separator: ''
+              empty_column: false
+              responsive: ''
             name:
               sortable: false
               default_sort_order: asc
@@ -167,18 +167,6 @@ display:
               separator: ''
               empty_column: false
               responsive: priority-low
-            status:
-              sortable: true
-              default_sort_order: asc
-              align: ''
-              separator: ''
-              empty_column: false
-              responsive: ''
-            operations:
-              align: ''
-              separator: ''
-              empty_column: false
-              responsive: ''
           default: changed
           empty_table: true
       row:
@@ -1049,52 +1037,49 @@ display:
           plugin_id: node_status
           group: 1
           entity_type: node
-        status:
-          id: status
-          table: node_field_data
-          field: status
+        field_workflow_generic_value:
+          id: field_workflow_generic_value
+          table: node__field_workflow_generic
+          field: field_workflow_generic_value
           relationship: none
           group_type: group
           admin_label: ''
-          operator: '='
-          value: '1'
+          operator: or
+          value: {  }
           group: 1
           exposed: true
           expose:
-            operator_id: ''
-            label: Status
+            operator_id: field_workflow_generic_value_op
+            label: Workflow
             description: ''
             use_operator: false
-            operator: status_op
-            identifier: status
+            operator: field_workflow_generic_value_op
+            identifier: field_workflow_generic_value
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-          is_grouped: true
+              anonymous: '0'
+              collectionneur: '0'
+              admin: '0'
+              root: '0'
+              invite: '0'
+            reduce: false
+          is_grouped: false
           group_info:
-            label: 'Published status'
+            label: ''
             description: ''
-            identifier: status
+            identifier: ''
             optional: true
             widget: select
             multiple: false
             remember: false
             default_group: All
             default_group_multiple: {  }
-            group_items:
-              1:
-                title: Published
-                operator: '='
-                value: '1'
-              2:
-                title: Unpublished
-                operator: '='
-                value: '0'
-          plugin_id: boolean
-          entity_type: node
-          entity_field: status
+            group_items: {  }
+          reduce_duplicates: false
+          plugin_id: workflow_state
         type:
           id: type
           table: node_field_data
@@ -1313,71 +1298,6 @@ display:
           separator: ', '
           field_api_classes: false
           plugin_id: field
-        type:
-          id: type
-          table: node_field_data
-          field: type
-          relationship: none
-          group_type: group
-          admin_label: ''
-          label: 'Content type'
-          exclude: false
-          alter:
-            alter_text: false
-            text: ''
-            make_link: false
-            path: ''
-            absolute: false
-            external: false
-            replace_spaces: false
-            path_case: none
-            trim_whitespace: false
-            alt: ''
-            rel: ''
-            link_class: ''
-            prefix: ''
-            suffix: ''
-            target: ''
-            nl2br: false
-            max_length: 0
-            word_boundary: true
-            ellipsis: true
-            more_link: false
-            more_link_text: ''
-            more_link_path: ''
-            strip_tags: false
-            trim: false
-            preserve_tags: ''
-            html: false
-          element_type: ''
-          element_class: ''
-          element_label_type: ''
-          element_label_class: ''
-          element_label_colon: true
-          element_wrapper_type: ''
-          element_wrapper_class: ''
-          element_default_classes: true
-          empty: ''
-          hide_empty: false
-          empty_zero: false
-          hide_alter_empty: true
-          click_sort_column: target_id
-          type: entity_reference_label
-          settings:
-            link: false
-          group_column: target_id
-          group_columns: {  }
-          group_rows: true
-          delta_limit: 0
-          delta_offset: 0
-          delta_reversed: false
-          delta_first_last: false
-          multi_type: separator
-          separator: ', '
-          field_api_classes: false
-          entity_type: node
-          entity_field: type
-          plugin_id: field
         field_page_type:
           id: field_page_type
           table: node__field_page_type
@@ -1638,24 +1558,131 @@ display:
           id: status
           table: node_field_data
           field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
           label: Status
-          exclude: false
+          exclude: true
           alter:
             alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
           element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
           element_default_classes: true
           empty: ''
           hide_empty: false
           empty_zero: false
           hide_alter_empty: true
+          click_sort_column: value
           type: boolean
           settings:
             format: custom
             format_custom_true: Published
             format_custom_false: Unpublished
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
           plugin_id: field
           entity_type: node
           entity_field: status
+        field_workflow_generic:
+          id: field_workflow_generic
+          table: node__field_workflow_generic
+          field: field_workflow_generic
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Workflow
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: list_default
+          settings: {  }
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
         operations:
           id: operations
           table: node
@@ -1725,6 +1752,7 @@ display:
         - 'config:field.storage.node.field_page_type'
         - 'config:field.storage.node.field_son'
         - 'config:field.storage.node.field_visuel'
+        - 'config:field.storage.node.field_workflow_generic'
   page_2:
     display_options:
       path: admin/content/collection
@@ -1933,52 +1961,49 @@ display:
           hierarchy: true
           error_message: true
           plugin_id: taxonomy_index_tid
-        status:
-          id: status
-          table: node_field_data
-          field: status
+        field_workflow_value:
+          id: field_workflow_value
+          table: node__field_workflow
+          field: field_workflow_value
           relationship: none
           group_type: group
           admin_label: ''
-          operator: '='
-          value: '1'
+          operator: or
+          value: {  }
           group: 1
           exposed: true
           expose:
-            operator_id: ''
-            label: Status
+            operator_id: field_workflow_value_op
+            label: Workflow
             description: ''
             use_operator: false
-            operator: status_op
-            identifier: status
+            operator: field_workflow_value_op
+            identifier: field_workflow_value
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-          is_grouped: true
-          group_info:
-            label: 'Published status'
+              anonymous: '0'
+              collectionneur: '0'
+              admin: '0'
+              root: '0'
+              invite: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
             description: ''
-            identifier: status
+            identifier: ''
             optional: true
             widget: select
             multiple: false
             remember: false
             default_group: All
             default_group_multiple: {  }
-            group_items:
-              1:
-                title: Published
-                operator: '='
-                value: '1'
-              2:
-                title: Unpublished
-                operator: '='
-                value: '0'
-          plugin_id: boolean
-          entity_type: node
-          entity_field: status
+            group_items: {  }
+          reduce_duplicates: false
+          plugin_id: workflow_state
       defaults:
         filters: false
         filter_groups: false
@@ -1994,16 +2019,56 @@ display:
           id: node_bulk_form
           table: node
           field: node_bulk_form
+          relationship: none
+          group_type: group
+          admin_label: ''
           label: ''
           exclude: false
           alter:
             alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
           element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
           element_default_classes: true
           empty: ''
           hide_empty: false
           empty_zero: false
           hide_alter_empty: true
+          action_title: Action
+          include_exclude: include
+          selected_actions:
+            - change_a_node_to_next_workflow_state
+            - node_publish_action
+            - node_unpublish_action
           plugin_id: node_bulk_form
           entity_type: node
         title:
@@ -2101,24 +2166,131 @@ display:
           id: status
           table: node_field_data
           field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
           label: Status
-          exclude: false
+          exclude: true
           alter:
             alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
           element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
           element_default_classes: true
           empty: ''
           hide_empty: false
           empty_zero: false
           hide_alter_empty: true
+          click_sort_column: value
           type: boolean
           settings:
             format: custom
             format_custom_true: Published
             format_custom_false: Unpublished
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
           plugin_id: field
           entity_type: node
           entity_field: status
+        field_workflow:
+          id: field_workflow
+          table: node__field_workflow
+          field: field_workflow
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Workflow
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: list_default
+          settings: {  }
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
         operations:
           id: operations
           table: node
@@ -2673,6 +2845,7 @@ display:
         - 'config:field.storage.node.field_langues'
         - 'config:field.storage.node.field_locuteurs'
         - 'config:field.storage.node.field_son'
+        - 'config:field.storage.node.field_workflow'
   page_3:
     display_options:
       path: admin/content/agenda
@@ -2714,52 +2887,49 @@ display:
           plugin_id: node_status
           group: 1
           entity_type: node
-        status:
-          id: status
-          table: node_field_data
-          field: status
+        field_workflow_generic_value:
+          id: field_workflow_generic_value
+          table: node__field_workflow_generic
+          field: field_workflow_generic_value
           relationship: none
           group_type: group
           admin_label: ''
-          operator: '='
-          value: '1'
+          operator: or
+          value: {  }
           group: 1
           exposed: true
           expose:
-            operator_id: ''
-            label: Status
+            operator_id: field_workflow_generic_value_op
+            label: Workflow
             description: ''
             use_operator: false
-            operator: status_op
-            identifier: status
+            operator: field_workflow_generic_value_op
+            identifier: field_workflow_generic_value
             required: false
             remember: false
             multiple: false
             remember_roles:
               authenticated: authenticated
-          is_grouped: true
+              anonymous: '0'
+              collectionneur: '0'
+              admin: '0'
+              root: '0'
+              invite: '0'
+            reduce: false
+          is_grouped: false
           group_info:
-            label: 'Published status'
+            label: ''
             description: ''
-            identifier: status
+            identifier: ''
             optional: true
             widget: select
             multiple: false
             remember: false
             default_group: All
             default_group_multiple: {  }
-            group_items:
-              1:
-                title: Published
-                operator: '='
-                value: '1'
-              2:
-                title: Unpublished
-                operator: '='
-                value: '0'
-          plugin_id: boolean
-          entity_type: node
-          entity_field: status
+            group_items: {  }
+          reduce_duplicates: false
+          plugin_id: workflow_state
         type:
           id: type
           table: node_field_data
@@ -2890,24 +3060,131 @@ display:
           id: status
           table: node_field_data
           field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
           label: Status
-          exclude: false
+          exclude: true
           alter:
             alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
           element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
           element_default_classes: true
           empty: ''
           hide_empty: false
           empty_zero: false
           hide_alter_empty: true
+          click_sort_column: value
           type: boolean
           settings:
             format: custom
             format_custom_true: Published
             format_custom_false: Unpublished
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
           plugin_id: field
           entity_type: node
           entity_field: status
+        field_workflow_generic:
+          id: field_workflow_generic
+          table: node__field_workflow_generic
+          field: field_workflow_generic
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Workflow
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: list_default
+          settings: {  }
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
         operations:
           id: operations
           table: node
@@ -3204,6 +3481,7 @@ display:
       tags:
         - 'config:field.storage.node.field_date'
         - 'config:field.storage.node.field_page_liee'
+        - 'config:field.storage.node.field_workflow_generic'
   page_4:
     display_options:
       path: admin/content/fils

+ 10 - 0
sites/default/config/sync/workflow.state.generique_creation.yml

@@ -0,0 +1,10 @@
+uuid: dd13c3bd-536a-4d65-8853-45079b782730
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_creation
+label: Creation
+module: null
+wid: generique
+weight: -11
+sysid: 1

+ 10 - 0
sites/default/config/sync/workflow.state.generique_masque.yml

@@ -0,0 +1,10 @@
+uuid: ac4bd641-c53e-4885-ad40-7f1e246f433e
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_masque
+label: Masqué
+module: null
+wid: generique
+weight: -8
+sysid: 0

+ 10 - 0
sites/default/config/sync/workflow.state.generique_publie.yml

@@ -0,0 +1,10 @@
+uuid: 7f8dee08-e6d7-424a-bfac-1225bec403a3
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_publie
+label: Publié
+module: null
+wid: generique
+weight: -7
+sysid: 0

+ 17 - 0
sites/default/config/sync/workflow.transition.generique_creation_masque.yml

@@ -0,0 +1,17 @@
+uuid: aa91ce9c-b50e-45a7-8df4-25a1bd2d3b1d
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_creation_masque
+label: null
+module: null
+from_sid: generique_creation
+to_sid: generique_masque
+roles:
+  workflow_author: workflow_author
+  admin: admin
+  root: root
+  anonymous: '0'
+  authenticated: '0'
+  collectionneur: '0'
+  invite: '0'

+ 17 - 0
sites/default/config/sync/workflow.transition.generique_creation_publie.yml

@@ -0,0 +1,17 @@
+uuid: 5cf09f75-b9af-437b-a389-daf78e857f6b
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_creation_publie
+label: null
+module: null
+from_sid: generique_creation
+to_sid: generique_publie
+roles:
+  workflow_author: workflow_author
+  admin: admin
+  root: root
+  anonymous: '0'
+  authenticated: '0'
+  collectionneur: '0'
+  invite: '0'

+ 10 - 0
sites/default/config/sync/workflow.transition.generique_masque_masque.yml

@@ -0,0 +1,10 @@
+uuid: 9d3620e0-df05-4ea9-97e7-e73fe7e3b2dd
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_masque_masque
+label: null
+module: null
+from_sid: generique_masque
+to_sid: generique_masque
+roles: {  }

+ 17 - 0
sites/default/config/sync/workflow.transition.generique_masque_publie.yml

@@ -0,0 +1,17 @@
+uuid: 3cf9c17b-fc2d-4c4c-97c7-99b6fcea7db3
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_masque_publie
+label: null
+module: null
+from_sid: generique_masque
+to_sid: generique_publie
+roles:
+  workflow_author: workflow_author
+  admin: admin
+  root: root
+  anonymous: '0'
+  authenticated: '0'
+  collectionneur: '0'
+  invite: '0'

+ 17 - 0
sites/default/config/sync/workflow.transition.generique_publie_masque.yml

@@ -0,0 +1,17 @@
+uuid: ddf3d31f-53a6-4674-ab15-9140fb772293
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_publie_masque
+label: null
+module: null
+from_sid: generique_publie
+to_sid: generique_masque
+roles:
+  workflow_author: workflow_author
+  admin: admin
+  root: root
+  anonymous: '0'
+  authenticated: '0'
+  collectionneur: '0'
+  invite: '0'

+ 10 - 0
sites/default/config/sync/workflow.transition.generique_publie_publie.yml

@@ -0,0 +1,10 @@
+uuid: 5b3cea27-e305-42ba-9fc6-5f2f0cadeb33
+langcode: fr
+status: true
+dependencies: {  }
+id: generique_publie_publie
+label: null
+module: null
+from_sid: generique_publie
+to_sid: generique_publie
+roles: {  }

+ 14 - 0
sites/default/config/sync/workflow.workflow.generique.yml

@@ -0,0 +1,14 @@
+uuid: baec80df-6c5d-4bc2-aca1-b36c2e97342c
+langcode: fr
+status: true
+dependencies: {  }
+id: generique
+label: generique
+module: null
+options:
+  name_as_title: 0
+  fieldset: 1
+  options: select
+  schedule_timezone: 1
+  comment_log_node: 0
+  watchdog_log: 1

+ 58 - 0
sites/default/config/sync/workflow_access.role.yml

@@ -32,3 +32,61 @@ corpus_documents_publie:
     grant_view: true
     grant_update: true
     grant_delete: 0
+generique_masque:
+  workflow_author:
+    grant_view: true
+    grant_update: true
+    grant_delete: 0
+  admin:
+    grant_view: true
+    grant_update: true
+    grant_delete: 0
+  root:
+    grant_view: true
+    grant_update: true
+    grant_delete: true
+  anonymous:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0
+  authenticated:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0
+  collectionneur:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0
+  invite:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0
+generique_publie:
+  workflow_author:
+    grant_view: 0
+    grant_update: true
+    grant_delete: 0
+  admin:
+    grant_view: 0
+    grant_update: true
+    grant_delete: 0
+  root:
+    grant_view: 0
+    grant_update: true
+    grant_delete: true
+  anonymous:
+    grant_view: true
+    grant_update: 0
+    grant_delete: 0
+  authenticated:
+    grant_view: true
+    grant_update: 0
+    grant_delete: 0
+  collectionneur:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0
+  invite:
+    grant_view: 0
+    grant_update: 0
+    grant_delete: 0