[Zope-CMF] DCWorkflow Help

Florent Guillaume fg@nuxeo.com
Tue, 17 Sep 2002 15:45:08 +0000 (UTC)


Chris Withers  <chrisw@nipltd.com> wrote:
> I'm using DCWorkflow but rather than having several million transition
> forms, I'd like to have one dynamic one.
> 
> Have a look at this mockup:
> http://swishdot.personalzope.nipltd.net/misc/workflow_form.html
> 
> Now, the problem is how to make it work. How can I find out the possible 
> transitions from the current state, getting their titles and the correct
> values for workflow_action?

portal_workflow.getActionsFor(ob) will return a list of possible
workflow actions.

> The short descriptions of each transition and state are currently stored as 
> macros in two ZPT's. Perhaps a description field could be added to each of
> these objects in DCWorkflow as a nicer alternative?

Yes, that's a good idea. Also maybe a way to get at the transition title
without using unrestricted code.

Could you put this in the collector as a feature request?

Florent


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com