Wiki Institute :: TWiki » WorkflowPlugin

TWiki > WorkflowPlugin r2 - 07 Feb 2006 - 20:36:53 - MeredithLesly?
Tags:
create new tag


Start of topic | Skip to actions

WorkflowPlugin

This implements a workflow model. The workflow is (currently) contains two tables:

  • a state table containing tuples of (statename, permissions, message)
  • a transition table containing tuples of (statename, action, nextstate, permissions).

The main problem at the moment is that the control for changing states is in the topic text, and it really needs to be outside of it. Also, the general edit button should reflect the workflow edit permissions, and it doesn't


Syntax Rules

  • %WORKFLOWSTATEMESSAGE% is replaced by the current state's message
  • %WORKFLOWTRANSITION% is replaced by a control allowing one to change to a permissible next state
  • %WORKFLOWEDITTOPIC% is replaced by either an edit link or a crossed out edit.

Examples

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = one line description here

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip WorkflowPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/WorkflowPlugin.txt Plugin topic
    data/TWiki/WorkflowPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/WorkflowPlugin.pm Plugin Perl module
  • Test if the installation was successful:
    • enter samples here

Plugin Info

Plugin Author: TWiki:Main.MeredithLesly
Plugin Version: 26 Jan 2006 (V1.000)
Change History:  
26 Jan 2006: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
License: GPL (GNU General Public License)
Benchmarks: GoodStyle nn%, FormattedSearch nn%, WorkflowPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/WorkflowPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/WorkflowPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/WorkflowPluginAppraisal

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main.MeredithLesly - 26 Jan 2006

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.WorkflowPlugin