Commit 0ce00e44 authored by Fredric Mitchell's avatar Fredric Mitchell
Browse files

add workbench comparison

parent fe66e625
......@@ -23,8 +23,38 @@ Event Execution Summary
5. NewState::on_enter
6. Event::after_transition
Structure of a State Machine
----------------------------
A StateMachine is made up of States and Events.
States are the status of the item at a certain point in time.
Events describe how the machine can move between states.
State Flow
-----------------------
State Flow is the base implementation of State Machine class. It provides a base workflow as a base plugin.
Custom plugins should use State Flow as a model when:
Adding new states
Adding new events
Integration
-----------------------
State Flow provides the following optional integration with other modules:
Rules: Hook a condition into a event transition
Views: Exposes defined states, revision information, and timestamps
Comparisons to Workbench
-----------------------
Workbench is powerful, workflow-related module to manage content. The direct comparison of State Machine is to Workbench Moderation.
The main difference between State Machine and Workbench is that State Machine is extendable and exportable through plugins. Workbench is mainly administered through the user interface and is currently not exportable.
For developers, State Machine events and states can be defined through extending the base class. A basic workflow interface within Drupal's default revision architecture is provided by State Flow.
The user interaction of State Machine is purposefully simplistic. For those who are looking for a more robust solution that can be configured through the Drupal administration area should look at using Workbench.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment