[Zope-CMF] WorkflowMethod

Florent Guillaume fg@nuxeo.com
27 Jan 2003 16:20:25 +0100


On Mon, 2003-01-27 at 06:58, robert rottermann wrote:
> >  - adding the necessary transitions (edit, setFormat, editMetadata)
> >    to the default workflows,
> 
> I do not understand why this should help?

Hm, right. Forget that one.

Florent

> Am Sonntag, 26. Januar 2003 19.57 schrieb Florent Guillaume:
> > In article <15903.11263.344652.310285@gargle.gargle.HOWL> you write:
> > > The idea (old use cases found on "cmf.zope.org") has been that
> > > you can control the method execution by your workflow:
> > >
> > >   When the worflow state does not allow the corresponding transition.
> > >   you cannot call the method.
> > >
> > > Unfortunately, this is broken in CMF 1.3:
> > >
> > >   When the workflow state does not allow the transition, the
> > >   method is called anyway.
> >
> > Yeah, that pretty much defeats the point of having workflow methods...
> >
> > I'm inclined to patch it, as I too need such functionnality.
> >
> > It would probably mean either:
> >
> >  - removing all workflowAction wrappings from CMFDefault, because the
> >    standard workflows don't have the correct transitions,
> >
> >  - adding the necessary transitions (edit, setFormat, editMetadata)
> >    to the default workflows,
> >
> >  - adding a global boolean flag to the workflow tool that says "enforce
> >    workflow methods".
> >
> > Opinions?
> >
> > Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com