Posted by CraigBertrand on April 21, 2008 at 10:08am
Hi I have installed workflow-ng on drupal 5.7 and I can't figure out how to allow users to change a state. I have created a state machine with 2 states and connected them with a specific content type. when I either edit or view that content type I cant see any way to change the state of the content? I have read the documentation but it doesnt talk about the state machine.
Once I get the state machine working I will fire an email if the state is changed to a certain "finished" state so that I can then view the node.
Any help would be greatly appreciated.

Comments
User documentation?
Hey all I have been messing with this for over a week now and everything I find on google is out dated.
Does workflow or workflow_ng work with actions or the states machine at all?
What is the deal with triggers?
Is there or will there be any user documentation on any of these modules? I would help but I have no clue as to how this all works.
I am sure that this is all cool if you know how to use it but if you don't it seems that you will never figure it out without some kind of documentation.
I have used the old workflow with the old style actions and it didnt work
I have used the new workflow with the new style actions and it didnt work
I have used workflow_ng with the states machines and it didnt work
I have tried many mashups with all of the above and it didnt work
I don't know if I am doing something wrong or what but... it aint working :)
any help at all would be appreciated.
Thanks
Craig Bertrand
Craig Bertrand
Hi, Workflow_ng, which in
Hi,
Workflow_ng, which in Drupal 6 will be called Rules, provides you the actions you need, and the states as well.
An example on how to build your actions:
1. Enable all modules in the workflow_ng package.
2. Create machine states.
3. Create a CCL (custom content links), and call it 'fire event'.
4. Create a rule configuration, which it's event is 'fire event'.
5. Add action to change the machine state and a second action to email the author of the node.
Is it answering your question?
Thanks
Hey thanks for the info, The CCL is where I must have missed it. Is there a way to specify where those links get put? or do they always go to the link section?
I would like it at the top of top of the page and on the edit form.
What is your advice, should I just have workflow_ng/rules installed and just get rid of workflow and actions? Will workflow_ng do everything these other 2 will? (I hope so because less modules to maintain)
Thanks for you help. I really needed to understand this stuff. I will give it a try.
Craig Bertrand
Craig Bertrand
I'm having similar issues to you, Craig...
I'm trying to create a customized Support Ticket system with 3 states:
Open - Awaiting reply from WWM Rep
Answered - Awaiting reply from Client
Closed
I also have several user roles:
Client
Project Manager
Designer
Tech Support
Web Admin
etc.
What I want to happen is when the Client creates a support ticket, the ticket state is automatically set to Open, and e-mail is sent to the client, project manager, and necessary to other staff members.
When a staff member edits the node or comments on it, I want the ticket state to automatically be set to Answered, and e-mail is sent to the client, project manager, and necessary to other staff members.
When the issue is resolved, the Project Manager can close the ticket.
Seem simple enough, but I cannot for the life of me figure out how to make it happen. I don't want people to have to manually set the state through and type of link or form elements.
Any advice would sure be helpful. I think workflows-ng is the right direction for me, and it works more intuitively and has a much better user interface than just Workflows, but I just can't seem to get either of them together or separately to make this work.
Thanks in advance!
Steve Wickham
+1, me too
Each time I read the tutorials they make sense, but my system doesn't seem to match what I think the system should be doing. For example, even though I've created the CCL (and enabled appropriate permissions under Access Control), I seem unable to move a node past "creation" through any method. I must be missing a step in the creation of the Rule Configurations?
My state machine has the following set-up: http://flickr.com/photos/emmajane/2617774334/
The rule configuration is enabled: http://flickr.com/photos/emmajane/2617774244/
The CCL is created: http://flickr.com/photos/emmajane/2650241928/
I think I'm missing something under the workflow tabs: http://flickr.com/photos/emmajane/2617773930/
(Although maybe you only get something here after the first successful state change?)
There's a full description of what I'm trying to set up over on the main drupal.org forums at http://drupal.org/node/275992
I am using Drupal 5.8 with the most recent recommended versions of the modules (and the latest snapshot for revisions).
I did have emails being sent to content author before I added in the state change requirement, but since adding the state change (which isn't changing state) things do not appear working as expected. I must have goofed when I set up the Rules? Perhaps I am trying to add too many things into a single Rule? Suggestions, thoughts and experiences are much appreciated!!