Add support for creating Workflows
| Project: | Install Profile API |
| Version: | 6.x-2.x-dev |
| Component: | CRUD functions and includes |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
| Issue tags: | workflow |
Jump to:
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

#1
Can you provide a patch for this? :-)
#2
We 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.