Multi-level workflow?
Hello,
I am currently working on a project where the same workflow is involved at several levels. More specifically, there are two interrelated roles: Authors and Validators. The trick is that a Validator at level N can also be an Author at level N+1. The number of levels is undefined (typically between 2 and 10).
Using the 'classic' (not ng) workflow module, I created the workflow matrix for level N with no problem. Now, if I declare a user X with both Author (for level N) and Validator (for level N+1) roles, on cases where some transitions are allowed for Authors and some others for Validators, the workflow tab for a node created by X will include the union of all these transitions, which is obviously not what I want.
So basically the question is how to deal with that? I don't want to create a whole bunch of roles and workflows and user roles. Maybe would it do the trick, but in a rather heavy, error prone and pretty unmanageable way.
Any suggestions?
Some raw ideas I got so far:
- Include a "level" parameter in the workflow, which can be checked against the level of the user.
- Set the appropriate hooks to allow delegation of the conflict resolution to a module.
- Define "even" and "odd" roles, so that a user can be Author_ODD and Validator_EVEN, and duplicate the workflow: one for odd levels, one for even ones.
- Extend the workflow matrix to include a "non-author" pseudo-role.
-- Denis.


Idea of the day : since an
Idea of the day : since an event in workflow-ng can trigger role addition/removal to a given user, maybe I can take advantage of this...
What do you think?