create new tag
view all tags

MetaWorkflowPlugin Example

This is an example of how to use the MetaWorkflowPlugin to create a workflow based on the value of a TWiki form field.

This is what's displayed in the %METAWORKFLOWCURRENT%:

Currently in phase three
Note: If you just see the plain variable, then the plugin is not enabled

Below is the Meta Workflow Definition table. This defines what the value of the form field must be before the workflow can continue to the next row. The FINAL row defines the message which is to be displayed after the workflow has been completed.

The %METAWORKFLOW{...}% for this table is as follows:
%METAWORKFLOW{type="FIELD" name="Status" key="value"}%

Topic Value Message
MetaWorkflowExamplePhaseOne Complete Currently in phase one
MetaWorkflowExamplePhaseTwo Complete Currently in phase two
MetaWorkflowExamplePhaseThree Complete Currently in phase three
FINAL   Completed all phases

This table could also have been stored in a separate topic, using the following setting (to use, you would need to remove the #):

For more information on the plugin, go to TWiki.MetaWorkflowPlugin.

Related Topics: MetaWorkflowExampleFormDefinition, MetaWorkflowExamplePhaseOne, MetaWorkflowExamplePhaseTwo, MetaWorkflowExamplePhaseThree, MetaWorkflowPlugin

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r2 - 2015-06-17 - TWikiAdminUser
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback