Questions tagged [workflows]

The process of moderating content for publication in Drupal according a set of business rules is a workflow.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Content moderation - workflows / weird behavior

I have set a content moderation workflows for my content type : Draft and Published states. Pretty basic, i create a content in Draft which is not published, i can change the moderation_state to ...
0
votes
0answers
8 views

How can I delete in bulk the submissions on a workflow

I have 400 some odd responses to a woprkflow i would like to delete. I dont want to delete them individually. How can i do it in bulk? Tha
0
votes
0answers
33 views

Content moderation “current revision” not set on nodes migrated from Drupal 7 where there are both a published and draft revisions

I am working on upgrading a Drupal 7 site to Drupal 8. The upgrade uses a content-only custom migration. The Drupal 7 source site and the Drupal 8 destination do not contain any custom modules other ...
-2
votes
1answer
45 views

How do I programmatically send a mail after changing a workflow state?

How do I programmatically send a mail after changing a workflow state? When a node is created, I send a mail. I want to send a mail on Workflow state operations. function mails_node_insert(...
0
votes
0answers
21 views

workflow rule data selector example

I need to add a user role when the workflow value is set to "approved". This role is setup already. Use case: An authenticated user fills out a webform, I have a custom module to add an ...
0
votes
1answer
45 views

Pull content from production to staging server

I have a setup that consists of a Drupal 8 instance on my localhost, a staging instance on a develop server and a productive version on a production server. Initially, I was co-designing the theme, ...
0
votes
0answers
15 views

Can a published node have a later unpublished revision?

I haven't used Drupal for a while and I'm wondering whether this has been fixed recently or whether I'm mis-remembering. I believe that if revision X of a node is published, it wasn't possible to ...
0
votes
2answers
70 views

How do you programmatically include an entity type to a workflow?

I have a workflow to which I want to include entity/content types programmatically since these content types will be included to the system by the installation of the module to which they reside. I'm ...
0
votes
1answer
34 views

How do I get the submitted moderation state of a custom block?

I am a bit new for Drupal and currently working on Drupal8. I need to implement custom restrictions for workflow. Basically i want to get the submitted value of moderation_state filed in ...
2
votes
1answer
56 views

Getting the workflow associated to a node type

How do i get the workflow entity associated to a certain node bundle? So far my approach has been to use EntityTypeManager to load the workflow config entity storage and trying to load the right ...
0
votes
0answers
36 views

Can you add a new state to Drupal 8 Workflows module through custom module?

Is it possible to add a new state (and transitions) to an already existing Drupal 8 Workflows through a custom module? And can we were to apply this to all workflows available? Or is it possible to ...
1
vote
1answer
35 views

How can I know if a type of content is moderated?

I'm trying to find out if a type of content (not a node) is being moderated. How can I determine it? For example: function MY_MODULE_form_node_type_form_alter(&$form, FormStateInterface $...
0
votes
1answer
96 views

Content Moderation: Editorial workflow not installed and broken/missing handler on the moderated content view

I'm having troubles enabling Content Moderation Module (content_moderation) on a Drupal 8.7.8 site. During installation everything seems fine, drush en content_moderation finishes without errors, ...
0
votes
1answer
37 views

Show workflow transition bar in all states

I've created a custom workflow using the workflow module with the transitions listed below and I've noticed that when going to the view page of a node the workflow 'bar' that lets you transition a ...
1
vote
1answer
37 views

How to assign a content type to a workflow programmatically?

is there any way that by code can assign a type of content to a workflow? I have reviewed the workflow module but I have not managed to find a method or a service that allows me to do it. What I am ...
0
votes
1answer
70 views

Content approval by roles workflow

So I am looking at creating a website in Drupal (In the past I have used PHP and in the past few years, Symfony), however, I can not work out the workflows when it comes to approval for content. The ...
1
vote
0answers
118 views

Using workflow with webform for moderation

I'm working with a Drupal7 site, it currently has both webforms and workflow modules. I need to move a webform from request to approve stages. I defined the stages, & Created a trigger for the ...
3
votes
0answers
273 views

Change workflow transition state of translated node

I have a content node that has several translated nodes attached to it. My goal is to set the workflow transition state of translated nodes according to the state of the "original" node. The problem ...
1
vote
0answers
39 views

A way to export workflow states globally?

My workflow and states weren't migrated from D6 so I re create them by hand. But I need to use them on another D8 website, and I don't find the way to globally export them, only state by state......
1
vote
0answers
28 views

Can Workflow Module be “non-linear”

I have two potential workflows in mind for website content: "Regular" Content Write Article (Draft) Content/Style Review Publish Content "Sensitive" Content Write Article (Draft) Compliance ...
1
vote
1answer
63 views

Is the Workflow module a Symfony component?

In Drupal 8.5, is the Workflow module a component from Symfony? I ask because I thought it might help me to learn the basics from the Symfony Workflow component, but looking at the core directory and ...
1
vote
0answers
61 views

Can multiple revisions of a node (entity) have different languages?

For example, we have a published English node, and a user creates a new draft and set the language (from the node form) to German and creates a new revision. This way the latest revision of the node ...
1
vote
0answers
36 views

Why is the WorkflowType in Drupal 8.5 Content Moderation so large?

I would like to create a custom WorkflowType in Drupal 8.5. I looked at the Content Moderation source, and it is a massive set of code. I don't mind coding, but is all the source for Content ...
0
votes
1answer
23 views

What configures Drupal to send emails on the create or update of an unpublished content? [closed]

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated. I don'...
1
vote
1answer
32 views

Trigger on selected field change

So I have a Drupal 7 Workflow rule where an email is sent out when a select field on a comment is set to "Approved'. This works fine with the exception being if I then add an additional comment to ...
6
votes
1answer
915 views

What is the “default revision”?

I'm using the Workflow module in Drupal 8 and I saw this checkbox on the "add a state" screen (/admin/config/workflow/workflows/manage/help/add_state): Default revision When content reaches this ...
0
votes
1answer
36 views

Workflow with per page permissions

I am creating a site for a complex organization of authors, editors, and publishers. Basically, each author is responsible for 1-5 pages and can only create drafts of these pages. Similarly, editors ...
1
vote
0answers
110 views

Get All “Drafts” in Content View

In essence, I'm trying to make a view of the moderation state "Drafts", (using Content Moderation). The catch, I'm trying to do so in a Content view for maintainability purposes. However, it won't ...
1
vote
1answer
2k views

get the content moderation value on node update

The module content moderation has been activated and a custom workflow added to a content type. On editing content, when selecting a content moderation state then clicking on save, I would like to ...
0
votes
2answers
67 views

Check if node update is published

I've a content type with a workflow. I have to notify users when the published version of the node is update. Have I to check which transition is used? How? I'm using an hook_node_presave. [EDIT] ...
0
votes
1answer
113 views

Add state permissions and allow state changes

I'm using Workflow module. I want to give permission to a specific role to edit the content moderation state. I found these on permissions page but it's not working. After I update the role permission,...
2
votes
1answer
473 views

execute action on workflow transition

I want to execute PHP script in my custom module, when transition occurs. Workflow is assigned to custom entity. I'm using Drupal's core modules Workflow and Content moderation. How can I do that ...
0
votes
1answer
332 views

Hook to compare the already saved value of moderation state of node and updated value [duplicate]

I'm using Workflow state on a content type. What is the correct HOOK should I use in my custom module to check if the workflow state of the node changed from value to another value to add some actions....
1
vote
0answers
49 views

How to link a a custom workflow with a content type or an entity?

I have a custom entity booking. I created a custom workflow type booking_moderation dedicated to this in Drupal\my_module\Plugin\WorkflowType\BookingModeration. I could then add my desirated states ...
1
vote
0answers
69 views

Proper Workbench Access/Moderation/Email + Node permissions for my use case?

I've been banging my head against the wall all weekend trying to figure this out but just can't seem to get 100% of the way there... I fix one thing, causing another thing to break. Making me question ...
1
vote
1answer
122 views

How to publish in an organization with hierarchy?

My Drupal experience is limited to a single site with custom content types and standard roles. Please take a look at the use case below, involving content being routed through multiple organizational ...
1
vote
0answers
22 views

How to debug no moderation_state on revision

I have a custom entity (not written by me) that I need to debug. It's currently crashing when editing the Entity because there is no moderation_state on the default revision. I'm new with both: ...
1
vote
1answer
21 views

How to use views to filter specific workflow state in current month

I have a system that is heavily workflow dependant. I have a content type called 'Profile' with 3 states : Lead Prospect Customer I would like to know how to create a views contextual filter of all ...
0
votes
1answer
573 views

Link to create a node, save it, and then go to the edit page

I want to enable users to click a link to create a node of a specific content type. However, instead of going to /node/add/contenttype, which is the standard Drupal flow, I want the node of the ...
0
votes
1answer
27 views

Allow content builder to 'disable' a content type form

I have a site that allows users to submit a 3d print job to a lab. The role of the site builder is: technician The content type in question is: print job Users can submit a print job (i.e. create a ...
1
vote
1answer
532 views

How to create media image entities like an image field?

I have been using a content type Article with an Image field to allow users to upload images. I have decided that I want to use media image entities instead because the images will be re-used on ...
3
votes
2answers
3k views

How to change the content moderation state in a custom submit handler?

I am trying to change the content moderation state from draft to submitted programatically. The Content Moderation module adds a field to content types with a dropdown to change the state, but I want ...
4
votes
1answer
867 views

Workflow, Workflows, Workspace, and State Machine— what is the difference?

Drupal 8 core has an experimental module called Workflows. There is also a contrib moduled called Workflow. There's also the Workspace module, which is associated with the Deploy module. Commerce 2 ...
2
votes
1answer
34 views

How can I automatically assign users to a node based on a taxonomy?

I've Googled this but might just not be using the right search phrases. I'm building an RFP repository for my company. Each RFP question will have a Category assigned to it. Within Drupal, I'd like to:...
4
votes
2answers
4k views

How can I programatically change the (D8 core) workflow state of an entity with Content Moderation?

I'm using Drupal 8.4-rc2. When you enable the Workflow and Content Moderation modules, you automatically get the Editorial Workflow as a demonstration. The states are as follows: Archived Draft ...
1
vote
2answers
884 views

Content Moderation: how to make a button to move between states?

I want to allow authenticated users to fill out a node (Draft) and then, when they are ready, submit the node (to give it the Submitted state). An admin will later decide whether or not to publish ...
1
vote
1answer
160 views

How to set which entities a workflow for Content Moderation applies to?

On Drupal 8.3, I enabled the Content Moderation and Workflow modules. This provides an example Editorial Workflow by default. The Content Moderation documentation states: Once your moderation ...
0
votes
2answers
45 views

Remove Workflow from Features

I'm trying to remove a Workflow instance from a Feature. But every time I uncheck the workflow and recreate the feature, the workflow gets deleted. Now I know that with Views, Panels and other ...
-1
votes
1answer
26 views

Display view results based on two values NOT matching

I am trying to filter view results based on two fields 'Workbench moderation: Latest revision ID (Latest Draft ID)' and 'Content revision: Revision ID (Published)'. What I want to happen is if the ...
0
votes
1answer
265 views

Empty node workflow state on node after programmatically saving

I have saved a node programmatically, in the following way: $node_storage = \Drupal::entityManager()->getStorage('node'); foreach ($entity_ids as $id) { $node = $node_storage->load($id);...

1
2 3 4 5