[daisy] Configuring workflow tasks programmatically

Paul Focke paul at outerthought.org
Mon Apr 21 09:41:36 CEST 2008


Hi Ross

You are describing quite a few different processes here.

I guess its a matter of preference but I'd go for your B option, each
step would have a different task node. Why this? Well when you are at
the start of your process instance you'd want to proceed to the
'prepare' step. So you have 1 transition to the 'prepare' node which
only has one task. The prepare task node only has 1 transition to the
next task node and so on. This way you simply transition your way
through the process and the users get bit sized tasks to do. Also in the
UI the actions a user can take in the bottom of a screen are transitions
to another node in the graph.

For the 'review each team member' process. You could go for the simple
solution and define the team in a pool. The team would the just have to
use a certain notation and place all the reviews in one variable. The
other way would be to indeed have a dynamic process definition but I
haven't had any experience with this. Maybe there is something on the
jBPM list that could be of help. However you'd also want the daisy meta
data to be dynamic as well but I don't think that is possible (bruno?).
So you'd have to have enough 'generic' definitions in the meta data to
cope with dynamic nature of the definition.

hth

Paul

On Sun, 2008-04-20 at 22:10 +0100, Ross Gardler wrote:
> I want to be able to configure various workflow tasks programmatically
> using Javascript.
> 
> In my use case I have a "monthlyTeamUpdate" process. This has a number
> of tasks such as  review each team member, write internal monthly review
> document, write external monthly review document etc.
> 
> There are multiple teams and the composition of each team varies
> reasonably frequently.
> 
> Focussing on the team member review task I can think of two approaches
> to defining the workflow:
> 
> a) create a workflow process that has separate task nodes for each team
> member. Each task node would have tasks to define the review process
> (e.g. "prepare for review meeting", "get feedback on active tasks", "f2f
> review meeting", "set new objectives" etc.)
> 
> b) create a workflow process that has a single task node for each step
> in the individual reviews (as outlined above), each of which would have
> a task for each team member
> 
> However, since there are multiple teams and the composition of the teams
> varies I'd like to add the tasks within the task node programatically,
> otherwise I have to redefine the workflow everytime a team changes in
> some way.
> 
> Problem is, I have no idea how to go about this and find nothing in the
> docs that helps. Can it be done this way? Any chance of a pointer about
> how to do this?
> 
> I promise to document this in the wiki (about time I wrote in there
> again) if your help enables me to figure it out.
> 
> Ross
> 
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list