| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 | ********************************************************************                     D R U P A L    M O D U L E********************************************************************Name: Workflow ModuleAuthor: John VanDykMaintainers: Mark Fredrickson <mark.m.fredrickson at gmail dot com>             John VanDyk drupal.org/user/2375             Bastlynn http://drupal.org/user/275249             Nancy Wichmann (NancyDru) http://drupal.org/user/101412Drupal: 7********************************************************************DESCRIPTION:The workflow module enables you to create arbitrary workflows inDrupal and associate them with node types.Workflows are made up of workflow states.Moving from one state to another is called a transition.Actions are associated with transitions (actions.module was usedfor this in Drupal 5; core actions support is in Drupal 6).Alex Reisner introduced role-based permissions for workflow statesand generally enhanced this module.********************************************************************INSTALLATION:1. Place the entire workflow directory into your Drupal   sites/all/modules directory (or appropriate alternative).2. Enable the workflow module by navigating to:     Administer > Site building > Modules   Enabling the workflow module will create the necessary database   tables for you.3. If you wish to use the administrative UI, then enable the   Workflow UI module. There are several other optional modules   that you may also enable, if needed.4. If you want anyone besides the administrative user to be able   to configure workflows (usually a bad idea), they must be given   the "administer workflow" access permission:     Administer > User management > Permissions   When the module is enabled and the user has the "administer   workflow" permission, a "Workflow" menu should appear in the   menu system under Administer -> Site building.   You may also allow only some users to schedule transitions. Select   the "schedule workflow transitions" permission to allow transitions.********************************************************************GETTING STARTED:Let's create a new workflow. Click on Administer -> Configuration ->Workflow -> Workflow and click on the "Add workflow" tab.We'll start simple. Call our workflow "Draft-Done" and click Add Workflow.Now lets add some workflow states to our workflow. Click "add state" andenter "draft" and click the Add State button. Do the same for "done".So we've got a workflow with two states, "draft" and "done". Now wehave to tell each state which other states it can move to. With onlytwo states, this is easy. Click on the "edit" link to edit the workflowand see its states.The "From / To -->" column lists all states. To the right are columnsfor each state. Within each cell is a list of roles with checkboxes.This is confusing. It's easiest to understand if you read rowsacross from the left. For example, we start with the creationstate. Who may move a node from its creation state to the "draft"state? Well, the author of the node, for one. So check the "author"checkbox.Who may move the node from the "draft" state to the "done" state?This is up to you. If you want authors to be able to do this,check the "author" checkbox under the "done" state. If you hadanother role, say "editor", that you wanted to give the abilityto decree a node as "done", you'd check the checkbox next tothe "editor" role and not the author role. In this scenario authorswould turn in drafts and editors would say when they are "done".Be sure to click the Save button to save your settings.Now let's tell Drupal which node types should use this workflow. Clickon Administer -> Configuration -> Workflow -> Workflow. Let's assignthe Draft-Done workflow to the article node type and click Save WorkflowMapping.Now we could add an action (previously configured using the triggermodule). Click on the Actions link aboveyour workflow. Add the action to the transition.Now create a new article by going to Create content -> article. If thereis no sign of a workflow interface here, don't panic. The interfaceis only displayed if there is more than one state to which the usercan move the node (why bother the user with a form with only oneselection?) Click Submit to create the article.You can see the state the node is in and the history of state changesby clicking on the Workflow tab while viewing a node.Changing the state to "done" and clicking Submit will fire the actionyou set up earlier.********************************************************************
 |