Closed (won't fix)
Project:
Workflow
Version:
5.x-2.x-dev
Component:
-workflow_workflow_ng
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2008 at 03:18 UTC
Updated:
14 Nov 2011 at 14:59 UTC
Hi,
I would like like to ask if it is possible to add "promote state" for workflow module under workflow-ng's action? really need this functionality. Thanks.
Comments
Comment #1
fagopromote state? there is an action to promote content to the frontpage.
Comment #2
Jkello commentedAs in for workflow module...
Promote the workflow from 1 state to the next.
Comment #3
amitaibuDo you mean you use the 'machine states' module from the wf_ng package? In this case you have an action to change a machine state. There is also an integration of workflow and wf_ng you can read about here (http://groups.drupal.org/node/11013), although I find the 'machine states' to be an easier solution.
Comment #4
Jkello commentedI am refering to the integration with workflow.
For exampls, for my workflow there is:
Start -> Doing -> End
I want to be able to promote a node from Doing -> End using wf_ng. However, wf_ng is not able to do this right now. It can only promote machine states.
Comment #5
amitaibuDid you try this - http://groups.drupal.org/node%252F11013 ?
Comment #6
ifbyphone1 commentedYou can update the sid value in the {workflow_node} table corresponding to the nid to the state of the "end" state. Just do a custom php action using db_query....
Make sense?
db_query(”UPDATE {workflow_node} SET sid = XX WHERE nid = %d”, $node->nid);
Look in workflows for the name of your workflow and get the wid.
Look in workflow_states for the sid that corresponds to "done" AND your wid. Take that number and replace XX in the dbquery above.
Comment #7
fagothe integration of workflow is part of workflow -> moving
Comment #8
Jkello commentedEveryone, Thanks for helping me out!
Amitaibu,
I tried that, but it does not work too the way I wanted it.
Fago,
What do you mean by workflow -> moving
tc60045,
Thanks for the heads-up. Saved me plenty of time. =)
Comment #9
fagosry: I meant:
the integration with workflow is part of workflow, so I'm moving this issue.. ;)
Comment #10
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn