Access to workflow state schedule at point of node creation, rather than just when editing existing nodes?

tanoshimi - November 5, 2007 - 21:35
Project:Workflow
Version:5.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Apologies if this is a simple question - I'm just getting to grips with workflow and actions and I'm loving the potential opportunities they provide, but not entirely successfully harnessing them!

Like many people it seems, I've created a workflow (called publication status) with two states for draft and published, with attached actions of unpublishing the node on creation-> draft, and publishing it when state changes from draft->published.
I want to use this workflow particularly in connection with the blog node type to enable me to write a batch of blog nodes now and schedule them to be published individually on given dates in the future. This actually works really well at the moment, but in order to set the schedule for the node publication I seem to have to submit the node first, and then go back in to edit it to be able to access the 'Publication Status' section where I can set the schedule for the state change from draft to published.

Am I missing something, or should I be able to set the schedule when I am creating the node?

Thanks for any help.

#1

tanoshimi - November 5, 2007 - 23:12
Title:Access to workflow states at point of node creation, rather than just editing existing nodes?» Access to workflow state schedule at point of node creation, rather than just when editing existing nodes?

Just changing the title of the issue - it's specific to setting the schedule when the workflow state can be changed in the future, rather than setting the workstate itself when the node is created (I can do this)

#2

nektir - January 24, 2008 - 00:26

You already have the role able to move something from creation to draft. Did you set the role to be able to move something from creation to published. I would think that would allow you to schedule the publish state change the first time you create the node. Of course then it might be sitting in limbo somewhere as it would only be in 'creation' stage, not 'draft' nor 'published'.

#3

tanoshimi - January 24, 2008 - 20:10

Thanks for the response - I don't think it's to do with permissions of the role, because I can go back in to edit the node immediately after it's created using the same user and then the workflow tabs are available.

I think your second suggestion is more accurate - a node cannot be assigned a workflow status on creation, because at that point it is not yet a node - there is no nid assigned which can be used in the workflow management....

Having said that though, scheduler module allows new nodes to be scheduled on creation using a similar mechanism, so there must be a way around it.... oh well.

#4

colliny2k - January 30, 2008 - 23:38

I too am wondering about this. Scheduling a workflow transition at the point of node creation would be very handy (and less confusing). Only being able to do so after creating the node and going to Edit is very user unfriendly...most users probably would not even realize they could schedule.

#5

mglover - October 8, 2008 - 15:17

Any progress on this? I'd also like to be able to schedule a workflow transition during node creation, cutting out the extra step.

#6

janusman - October 9, 2008 - 18:58

subscribing

#7

Sean Buscay - October 29, 2008 - 14:48

Hello tanoshimi, mglover , and janusman:

I've illustrated a sort of programmatic semi work around in this blog post:

http://treehouseagency.com/blog/sean-buscay/2008/10/24/building-publishi...

I hope it might help. If you have any specific questions I might try to answer, feel free to ask.

Best Regards,
Sean Buscay

#8

andrewsuth - February 6, 2009 - 21:30

Brilliant work and well documented.

Hats off to you!

#9

jpbhat - June 16, 2009 - 11:06

Hello all

i am also facing same problem in work flow
i have create publishing work flow with state as draft,review,rework,unpublished and published and created a n action for that my question is if i change the state from unpublished to publish state why the content remains in not published state weather i am doing wrong thing or should we click on publish in publishing option inorder to publish the content please any one could suggest an idea how to do automating publishing and un publishing of content using work flow

 
 

Drupal is a registered trademark of Dries Buytaert.