I'm building a publicly available module which relies on some predetermined workflow processes. To ease the installation, I'd like to be able to easily create workflows and states. I think that a system like views and cck use for an 'export' screen that shows a large array and an 'import' screen which takes that in and executes it would work well. Especially if there were also a way to do it in code.
It looks like the workflow_create and workflow_state_create and workflow_edit_form (via drupal_execute?) will be helpful in this. I think there could be some value in refactoring, for example, some of the saving functionality out of workflow_edit_form and into a dedicated "workflow_edit_save" could help with this.
I'm going to have to build something like this for myself anyway - just curious if I should do it in my module or if I should try to add it to workflow and if such a patch would be accepted.
Thoughts?
Comments
Comment #1
hillaryneaf commentedI would love an import/export workflow option... Workflows take some time to create and it'd be helpful to be able to export them at least for back up purposes.
Comment #2
gregglesI did create a basic import for workflows from http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/market/mark...
It's not "pretty" but it works.
Also note that the association of workflows to nodetypes is broken in that because it relies on this patch: http://drupal.org/node/224319
Comment #3
eli commentedgreggles - Did you make any further progress on importing/exporting workflows beyond what's in market.install?
I'd love to help make this a real module -- I've got to add a set of workflows to 22 different sites.
Comment #4
greggles22 - wow! No, that's all that I've got, though it seems to work reasonable well for me. And note that that code is broken (see end of comment in #2)...
Comment #5
askit commentedAbility to import/export workflow definitely makes admin's left easier. Sad to see no progress in this direction.
Comment #6
EvanDonovan commentedAny work on this for the 6.x version? Workflows take forever to configure, and they're something that is really import to test on the development site before you implement it on the live site.
Comment #7
EvanDonovan commentedRelated issue for 6.x: #558378: Make workflows exportable with Features (D6). I made that a separate issue since the approach of supporting CTools' export.inc is not available on the 5.x branch.
Comment #8
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
Comment #9
gregglesOk, but this feature request is still relevant against 6.x and/or 7.x. Bumping version and reopening.
Comment #10
Bastlynn commentedSounds good. In my review yesterday, I think I spotted a few other requests for this as well. I'll see if I can merge those into one.
Comment #11
Bastlynn commentedRelated request: #558378: Make workflows exportable with Features (D6)
Comment #12
gregglesSure, this seems like a duplicate of that.
Comment #13
adamtong commentedwhen will the workflow can be export and import by Features Module?