[Zope-CMF] Zope 3 events from workflow

Jens Vagelpohl jens at dataflake.org
Wed Dec 27 03:18:25 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Am I right in thinking that DCWorkflow does not send any Zope 3  
> events? I'm not terribly familiar with that code, but some grepping  
> suggests so.
>
> Do you agree this would be useful? (I've got a pretty strong need  
> for it  for Plone 3, i.e. CMF 2.1 - I'm sure we can work around it  
> in Plone, but I'd rather do it properly)

It is definitely useful in the general migration towards more event- 
based processing.


> I'm not quite sure where the best place to execute the event is.  
> One option may be DCWorkflow/DCWorkflow.py, in notifyBefore() and  
> notifySuccess(). Here, though, I get a bit confused about how to  
> construct the wf_name and state_before/state_after parameters. I  
> guess they're not always needed, but they seem like they'd be  
> useful to most event handlers.

Eyeballing the code seems to suggest  
DCWorkflowDefinition._executeTransition as the place where both the  
old state and the new state are known.

If events are used I'm not sure what the notify*-Methods would be  
used for anymore.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFkixRRAx5nvEhZLIRAhABAJ0fM03/aTdY+1veRoIspYPi8HlYnwCcC5s+
xRrn5/5kVykwWZsJc8w75Ng=
=8MLg
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list