How to update state on existing nodes after workflow install
thededalus - October 13, 2007 - 03:02
| Project: | Workflow |
| Version: | 5.x-1.1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have installed workflow & have successfully created a workflow such that when I create new content, it, well, flows through the intended path, the right roles have access to them.
However, what can I set my existing content to the final state or give them a psuedo history of having passed through each state?

#1
We did it on the dirty way:
INSERT INTO service_workflow_node
(nid,sid,uid,stamp)
(SELECT nid,'33','1','1195736390' FROM service_content_type_projecttasks);
thats not a good way, but it fixed this issue...
Daniel Greitens
www.maximago.de
#2
I think this is a new feature request, not an existing. I'd say the best way to implement this is a badly needed batch workflow changing.
Perhaps this is interesting:
http://drupal.org/project/views_bulk_operations
#3
You are rigth, I did it on 300 nodes with views_bulk_operations and the built'in workflow action "Change workflow state of a node to next state".
#4
That's nice feature to update state with views_bulk_operations. But the built in workflow action only allow update to next state.
Would it be possible to update to any state of workflow with an operation, such as "Change workflow state"?
#5
You have to code your own operations to update to a state
I've written some operations, one for each state I use. I don't know if it's the best way but I can post it...
#6
i'm having this same problem. i installed the workflow and actions modules after about 30+ pages are already produced, and now i can't seem to get this existing content to pass through a workflow. can someone tell me very plainly what i can do so in future this content can go through a workflow? i'm very surprised that it seems only new content is set up correctly for workflows.