Hi. Maybe a more interesting question this time :-)
I'm currently writing a perl script which will poll xwiki looking for
newly-minted objects of a class I've created representing a kind of
task. The script will handle the task and then update the corresponding
object. The fun part is that along the way it may create new task
objects and insert them into the wiki, leading to a cascade of related
tasks until the overall job is fully completed.
This is a design pattern I've encountered repeatedly in the past and I
don't know what it's called. "Task graph"? Like make, or maven I
guess.
For various task types TaskX, TaskY, TaskZ I want to do something like:
* Seach for objects of class TaskX with field f having value v
* Foreach object j TaskX:1 to TaskX:N
* update j:f to something indicating the task is underway
* run command line with parameters retrieved from j
* update j:f to something indicating the task is finished
* based on command line output (velocity fragment?) create new tasks
So the thought occurs, a) this should be a plugin that allows me to
configure these task classes and the command line to process them all
via the wiki, and b) someone might have already made one :-) But I can't
find anything like that in the extensions wiki. I did find the
scheduler plugin, which is a bit like this in some respects.
Does anyone have any suggestions?