this is but a small, specific instance of the event stuff peter has talked about before on twiki.org
this plugin "executes" a series of URL's when a new topic is created which matches a topic regex.
TODO:
- figure out/decide on a format for listing more than one event!
- trap errors --- but what to do about them? abort the sequence or ???
- probably need to recode the URL fetch using a trick similiar to twiki's internal
%INCLUDE%
- that is, if the URL matches the wiki, do an internal "redirect" rather than an external URL HTTP GET
- documentation
here's an example of how it could be used on twiki.org to automatically create
Dev
and
Appraisal
topics when a new Plugin, Contrib, Skin, or
AddOn topic is created in the plugins web:
* Set MATCH = ^Plugins.(.*?)(Plugin|AddOn|Skin|Contrib)$
* Set EXECUTE = %SCRIPTURL%/save%SCRIPTSUFFIX%?topic=$1$2Dev;templatetopic=$2DevTemplate %SCRIPTURL%/save%SCRIPTSUFFIX%?topic=$1$2Appraisal;templatetopic=$2AppraisalTemplate
because this plugin "executes" URL's, and because twiki has a mostly REST interface, other actions are possible: eg, creating a new web, renaming topics, etc...
SVN:7581
WN
You might also look at
CPAN:Workflow
http://search.cpan.org/dist/Workflow/
See
http://www.google.ca/search?q=%22what+is+workflow%22&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
for a general description.
MC
Interesting. I suggest to discuss this in
TWiki:Plugins.NewTopicEventPluginDev
where more eyes are watching. We should use the bugs web only for small actionaly items, not for spec discussion and design.
This Plugin has a similar functionality to the
TWiki:Plugins.TopicCreatePluginDev
. That plugin works but has not been release yet.
--
PTh
TWiki:Plugins.TopicCreatePlugin
has been released (21-nov-05)
--
TWiki:Main.StanleyKnutson