Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [workflow]

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

0
votes
0answers
14 views

Maestro Webform Integration. “Field langcode is unknown.” when trying to run Orchestrator

I'm on Drupal 8 trying to add a simple workflow to a contact form. I have implemented this locally with Maestro Webform integration and it worked out alright. When implementing this on my server, the ...
0
votes
1answer
32 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 ...
0
votes
0answers
14 views

Multiple Roles in Workbench Access

I am using D8 Workflows and Workbench Access. There are two roles: Authors and Reviewers. I set up Workflow permissions so that Authors can create new pages site-wide and use the Draft to Under ...
1
vote
0answers
26 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 ...
0
votes
0answers
16 views

Content moderation module that integrates well with Services (rest)

I am looking for a content moderation/workflow solution that will integrate with the Services module. I would like to update and transition the workflow state of a node using an api. Currently, I am ...
3
votes
0answers
181 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
23 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
22 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
48 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
41 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
26 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
22 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
25 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
427 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
26 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
46 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
812 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
40 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
0answers
48 views

Change location of webform workflow state transition?

Webform Workflow module allows you to change the state inside a submissions view tab. Is it possible to change the location of where I can change the state of the submission? Maybe in it's own block/...
0
votes
0answers
58 views

Content moderation use a state permission not working

I'm using Workflow module. I have transition states on a content type. I've been given permission for specific roles to edit these states, like on below screenshot When I login using any of roles ...
0
votes
1answer
41 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,...
0
votes
0answers
31 views

PHP condition in Rules to check if First Name, last Name of User is duplicate

I have an issue where I need to check if users registering to my drupal site are duplicate users. They may user a different email address from a third-party but are using the same first and last name ...
2
votes
1answer
233 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
114 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
37 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
51 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
53 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
20 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
17 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
374 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
26 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
455 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 ...
2
votes
2answers
2k 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 ...
2
votes
1answer
592 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
31 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:...
5
votes
2answers
3k 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 ...
0
votes
2answers
623 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
116 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
34 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
25 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
207 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);...
0
votes
1answer
32 views

how to enable workflow submodules in Modules administration page

I am a very beginner to Drupal. In order to understand how Drupal-Workflow works, I try to install Workflow Module into my site. Following the installation guide on Drupal Documentation, i place the ...
1
vote
1answer
670 views

Content approval by roles

here is my question: I need to implement a content approval process, my client wants content to go through an approval process before being published. I need to create 3 administrative roles, like ...
3
votes
1answer
52 views

Reestablishing development workflow with GIT after doing it wrong

At one point, I had the following proper Drupal development workflow: local development environment (using Mamp), dev server for testing and a production server, and I used GIT to deploy the changes ...
4
votes
2answers
631 views

How can I change the published state of a node before it is saved with hook_entity_presave()?

I tried adding this in entity_presave $entity->setPublished(0); but the node still gets saved as published. How can I make it be set to draft?
5
votes
2answers
3k views

How do I limit validation errors to submission buttons?

Using hook_form_alter I have tried to add limit validation errors to workflow submission button. In form alter I'm getting two form_id's one is normal node add form_id and another is workflow state ...
1
vote
1answer
34 views

“Unable to send email” error shown to anonymous users in Workflow action

Using the Workflow module, I've got a content type that can be created by anonymous and authenticated users alike, then it goes into a review process. Upon creation, I want to email the user with a ...
3
votes
1answer
43 views

Error viewing articles/pages after assigning

As an experiment I've merged core from 8.3.x branch to try out workflow. After successfully assigning 'editorial workflow' to articles and pages, I cannot access the pages or articles anymore neither ...
0
votes
1answer
484 views

How to correctly start a website using Git/Drush/Composer workflow?

I am trying to follow this article to start a D8 site: https://www.drupal.org/node/803746 The article is for D7 but I think there are no much differences. These are the steps I followed so far: ...
2
votes
1answer
55 views

The right form to work with pages [closed]

Reciently, I'm starting to work with Drupal 8, but I have some problems working with main pages. I can create a content type for all pages, but, the fields I use in to create this, must be content all ...