Hello guys,
I have successfully setup the workflow.module found here http://drupal.org/project/workflow. Following jvandyk readme.txt, I have made the "draft-done" example, applyed it to a simple story and it works as discribed. So thanks for the great job.
By now, I wonder if there is a way to use this module with the role permission system. My example is quite the same as the one found here http://drupal.org/node/13129 . In a wonderful world I imagine a system where the transitions could be mapped with roles.
Suppose I've got 3 roles in my system :
- writers, allowed to write a story,
- rewiers, allowed to review a story, make comments and publish it
- publishers, allowed to promote the story
Suppose now, I set up a workflow with 3 transitions :
- draft -> review
- review -> publish
- publish -> promote
In this example, writers should only be allowed to fire up the first transition "draft -> review" and then the story should'nt be editable until it goes back to stage draft. Reviewers should only be allowed to the first transition in reverse or the second review -> publish and add comments if necessary. Publishers should only be allowed to the second in reverse and the third.
Is there any way to achieve that with the workflow.module in his actual stage ? Am I missing something ? Should I file a request ?
Regards,
Comments
are we asking for the same thing?
ec,
I just posted a similar query about the same time you posted this. See http://drupal.org/node/16177
I wonder if we're asking for something similar... or if my UI suggestion might help some willing and able programmer to provide the functionality we seek.
thanks,
Ryan
You're just right
Ryan you're just right and your post is better written than mine ! We are asking for the same thing at the same time. And more than that, I thing that the specifications for the "revising and moderating questions" for the quizz.module found here http://www.webs4.com/node/28 and here http://drupal.org/node/15934 are not far away from what we are asking. It sounds that using workflows occording to role based permissions is a general concern for CMS where the review is not based on peer but on hierarchy. So this mechanism should apply to any node to.
In this way I think that the concern of quizz.module for revision and moderation should eventually ask at a higher level to be available for all nodes type.
Eric
PS : I will post a question in that way here http://drupal.org/node/15934
Roles and workflow
The infrastructure is there for it, but two things need to happen:
1. An action needs to be written that does the assignment of a role to a node.
2. An additional module needs to take care of the implementation of the node access permissions. There are three modules which do this right now. I'm using one called nodeperm_role.
Thanks
Jvandyk, thanks for your answer. Could you give us more details and maybe a roadmap for those at quizz.module for education to make their mind ?
By the way, I agree with you for that [the name 'default workflow' is misleading] found here http://drupal.org/node/14170. I find it a bit confusing. Like you, I would prefer something like "default options". Just my 2 cents.
Regards,
Eric
Roadmap?
I'm not quite sure what details you are asking for. In terms of a roadmap, I would like to replace the workflow module's own workflow tables and form rendering by using vocabularies as the back end. But taxonomy.module needs work, particularly in the areas of security and private vocabulary notation, in order for this to happen.
Note that the workflow module is written in an open-ended way. You can define arbitrary workflows (that is, whatever you can think of). Whenever workflow transitions happen, the workflow module sends out the workflow callback. Your module (e.g., a quiz module) can simply catch that with the _workflow hook.