[Checkins]
SVN: z3c.wfmcpersistent/trunk/src/z3c/wfmcpersistent/process.py
TransitionDone event added
Adam Groszer
agroszer at gmail.com
Fri Mar 9 12:03:38 EST 2007
Log message for revision 73127:
TransitionDone event added
Changed:
U z3c.wfmcpersistent/trunk/src/z3c/wfmcpersistent/process.py
-=-
Modified: z3c.wfmcpersistent/trunk/src/z3c/wfmcpersistent/process.py
===================================================================
--- z3c.wfmcpersistent/trunk/src/z3c/wfmcpersistent/process.py 2007-03-09 16:40:54 UTC (rev 73126)
+++ z3c.wfmcpersistent/trunk/src/z3c/wfmcpersistent/process.py 2007-03-09 17:03:38 UTC (rev 73127)
@@ -94,6 +94,10 @@
zope.event.notify(zope.wfmc.process.Transition(activity, next))
self.activities[next.id] = next
next.start(transition)
+ #I want to be able to check the new WF states
+ #that are determined by the workitems
+ #therefore i need an event after the workitems are there
+ zope.event.notify(TransitionDone(activity, next))
if activity is not None:
del self.activities[activity.id]
@@ -144,3 +148,14 @@
def __repr__(self):
return "ParticipantPersistent(%r)" %self.__name__
+
+class TransitionDone:
+ #I want to be able to check the new WF states
+ #that are determined by the workitems
+ #therefore i need an event after the workitems are there
+ def __init__(self, from_, to):
+ self.from_ = from_
+ self.to = to
+
+ def __repr__(self):
+ return "TransitionDone(%r, %r)" % (self.from_, self.to)
More information about the Checkins
mailing list