Skip to main content
3 of 12
deleted 8 characters in body
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Implementing this kind of workflow is pretty forward using a combination of these modules (and regular content types, no need for something like "webforms"):

Refer to my answer in the question about "http://drupal.stackexchange.com/questions/164199/content-submission-by-anonymous-users/164226?s=2%7C0.3218#164226" for examples (and more details) about how to use these 4 modules together (this question here seems like a variation of that question).

Below are some details to implement your workflow with a similar approach:

An employee submits the form

Employee create a node of content type (say) "Request" (Use Content Access to finetune all sorts of permissions about "which role is allowed to create such types, if you have multiple types of requests you just extend to multipple content types).

Supervisor gets notification, after reviewing the form, he either approves it or denies the request on the same submission.

  • Use Rules to "send an eMail" (= action) to Supervisor "After content of type 'Request' gets saved" (= event). In the (custom) eMail for the Supervisor, include all relevant details about the Request (depending on the various data that are available to Rules). Such as an URL of the node to be reviewed.

  • To ensure the Requestor cannot change the Request data (while the review process is outstanding), add an extra action to the same (previous) rule which updates the access to the Request (to make it read only for requestor).

  • Use the Flag module to enable the Supervisor(s) to mark the submitted node with flags such as 'Approved (by Supervisor)' or 'Denied (by Supervisor)' (Rejected?). The permission to set these flags is limited to the Supervisor(s).

If approved, an email notification gets sent out to Director who in turn approves or disapproves the same submission.

  • Use Rules (again) so that "After a node gets flagged with 'Approved (by Supervisor)'" (= event), it causes a similar "send an eMail" (= action) to Director occurs. In the (custom) eMail for the director, include all relevant details about the Request (depending on the various data that are available to Rules). Such as an URL of the node to be reviewed.

  • Use the Flag module (again) to enable the Director to mark the submitted node with flags such as 'Approved (by Director)' or 'Denied (by Director)'. The permission to set these flags is limited to the Director.

  • Use Rules to "send an eMail" (= action) to Requestor "After content of type 'Request' gets flagged as denied (by Director)" (= event).

If denied by supervisor, an email gets sent to an employee.

  • Use Rules to "send an eMail" (= action) to Requestor "After content of type 'Request' gets flagged as denied (by Supervisor)" (= event).

So just some basic Rules/Flag stuff ...

Note: the above proposal does not (yet) include anything related to Node Convert. This module only needs to be added to this mix if you want to further refine the above with specific "fields" that some of the workflow participants should not "see" at all (to avoid you'd have to use "field permissions", which could be an alternative to that.

Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182