Workflows and Workflow States should have machine names. This is step one in prepping for exportability.

CommentFileSizeAuthor
#3 workflow-867186-3.patch74.24 KBq0rban

Comments

q0rban’s picture

q0rban’s picture

Assigned: Unassigned » q0rban

Assigning to me, gonna start working on this now.

q0rban’s picture

Status: Active » Needs work
StatusFileSize
new74.24 KB

Wow. This is an insane patch, and it really only touches workflows and workflow_states. Still need to work on spreading the love to the other tables. My testing shows everything working at this point though.

You'll notice that the updates start at 6200, b/c I'm basically assuming this calls for a new major branch.

Other things that need updating are translations.

Whomever reviews this patch, I do not envy you.

q0rban’s picture

Also, I'd like to deprecate some tokens. workflow-name doesn't seem to be a good idea for a token name anymore.

q0rban’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

There is a new 2.x branch of Workflow that will focus on implementing this as a step 1 for exportability. http://drupal.org/node/893230

q0rban’s picture

Status: Needs work » Fixed
q0rban’s picture

Assigned: q0rban » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

irakli’s picture

Status: Closed (fixed) » Needs work

Machine names do not work in 2.x branch. I just tried adding a new workflow, and even though I got label and machine name on the form itself, when I tried to save the new workflow:
1. I was redirected to: admin/build/workflow/edit/op_basic_publishing_workflow/states ( should probably have numeric ID in there, not the machine name)
2. Got a Page not Found error and a message "The workflow Basic Publishing Workflow was created. You should now add states to your workflow."
3. When I went back to the workflows page - there was no workflow that had been created.

I need exportability in order to be able to use this module, hence I am trying to fix these errors in the 2.x branch today/tomorrow + add CTools exportability code and submit a patch to 2.x branch.

q0rban’s picture

Irakli, can you find me in IRC please, so I can sync up with you on the current state? Thanks.

q0rban’s picture

Status: Needs work » Fixed

Also, machine names are working, regardless of the fact that the 2 branch is completely unstable, so I'm closing this issue. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

johnv’s picture

Title: Add machine names to workflows and workflow states » [EXPORTING] Add machine names to workflows and workflow states
Issue summary: View changes