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

fago’s picture

Status: Active » Fixed

promote state? there is an action to promote content to the frontpage.

Jkello’s picture

Status: Fixed » Needs work

As in for workflow module...

Promote the workflow from 1 state to the next.

amitaibu’s picture

Status: Needs work » Postponed (maintainer needs more info)

Do 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.

Jkello’s picture

I 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.

amitaibu’s picture

ifbyphone1’s picture

You 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.

fago’s picture

Project: Workflow-ng » Workflow
Component: State Machines » -workflow_workflow_ng

the integration of workflow is part of workflow -> moving

Jkello’s picture

Everyone, 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. =)

fago’s picture

sry: I meant:
the integration with workflow is part of workflow, so I'm moving this issue.. ;)

Bastlynn’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Hi,

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