Re[2]: [Zope-CMF] Workflow: Two 'Pending review' entries in actions

Gitte Wange
Thu, 13 Feb 2003 14:59:08 +0100

On Thursday 13 February 2003 02:24 pm, Rainer Thaden wrote:
> Hallo Raphael,
> RR> Rainer Thaden wrote:
> >>So why does the DefaultWorkflow mess with my objects.
> RR> Because each workflow in compiling its worklist queries the catalog
> RR> ONLY based on 'review_state' (per default at least). So if you use =
> RR> state name 'pending' in different workflows you will get this behav=
> RR> Personally I consider this a bug in the design of DC Workflow since
> RR> each workflow COULD know which content types he is responsible
> RR> for but obviously doesn't care.
> RR> The dirtiest hack around would be to use different names for the
> RR> pending state in different workflows (not recommended).
> RR> More cleanly you could add a 'Guard' where in the expression you
> RR> specify the approprite content type(s) - or whatever.
> Even more dirty: i placed a return None at the beginning of
> listGlobalActions() in

Even even more dirty:
I removed the worklist from one of the workflows so only 1 is present ;-)

Gitte Wange
Technical Manager

Tlf: +45 36 46 20 02

After 1.5 years of Python, I'm still discovering
richness (and still unable to understand what the
hell Jim Fulton is talking about).

    -- Gordon McMillan, 13 Mar 1998