I want to be able to make a change in the workflow conditional on the state of another one. (I think)
I will attempt to explain.
I'm building a bi-lingual site, and I do not want to allow a node to be published in one language untill the other is ready to be published.
So far, I have the following workflow states:
draft-original
review-original
publish original
draft-translation
review-translation
publish-translation
there are roles for reviewer, translator and editor ATM as well of course author
I have the locale and i18n modules installed, as well as workflow, nodeperm_role and actions, all the latest from cvs modules page
nodeperm_role has the newapi patch applied
Any suggestions, pointers, examples or whatever would be greatly appreciated
Comments
Comment #1
dvdweide commentedI stumbled on this issue, but noticed that it's quite old. Are you still interested in this?
You can create a module with a hook_workflow() hook in it.
There you can catch the 'transition pre' operation, in which you can veto any transition at your likings.
Look at the workflow_workflow() function for an example, it's where actions are executed.
If it's just for one specific site, you might as well hardcode your rules, as a creating a decent user interface for this might be quite daugnting task.
Have fun!
Danny
Comment #2
mfredrickson commentedIf you make that a linear workflow (i.e. going through each state you describe in the order you describe) should meet your needs. I am unclear if you have additional questions, but what you purpose sounds good.
Please re-open if you need more support.
Cheers!