In my current project I need the ability to set up various workflows as part of an Install Profile and/or Module Install.
I'm currently working on a workflow.inc file to simplify this process and should be submitting a patch within the next few days.
I currently have the following functions implemented:
install_batch_create_workflow() -- Creates a series of workflows and their associated states in a single call
install_delete_workflow() -- Deletes a workflow and all associated states
install_get_workflow_id() -- Looks up a workflow id based on a workflow name
install_add_workflow_state() -- Adds a new state to an existing workflow
install_set_workflow_map() -- Maps Content Types to Workflows
install_set_workflow_transitions() -- Sets the state transition rules for a workflow
I still need to implement the following features before uploading the patch:
--Configure workflow comment log settings
--Configure workflow tab permissions
--Configure workflow access control
Comments
Comment #1
James Andres commentedCan you provide a patch for this? :-)
Comment #2
shawn_smiley commentedWe decided not to use workflow on that project so I never got around to finishing the patch. :-(
I'll try to find some time and get a patch submitting over the weekend.
Comment #3
James Andres commented