On Tuesday 17 January 2006 03:27, Markus Leist wrote: > is there any small kind of sourcecode which can do a "simple" trigger of an > ecm.workflow direct in an object-method? > I have some xmlrpc-methods in which i have to modify the state of > "self"...workflow. > > in my old "zope.app.workflow"-source it looks like: > def changeWorkflowFrom... > adapter = IProcessInstanceContainer( self) > wf_host1 = removeAllProxies(adapter.get( "wf_host1")) > wf_host1.fireTransition(u"configured_offline") > > any idea?
Well, in WfMC you cannot just trigger a transition. Instead you have to finish all the workitems. In SchoolTool I keep track of all the workitems in a list. Then I just finish them. Note that you only need to keep track of workitems that require manual interaction. All this can be seen from the zope.wfmc/README.txt file. I had to read the file about 3 or 4 times before I knew what was going on. But it is very complete. > at what place i should post a kind of "mini-howto" (in a few day)? I think the Zope 3 Wiki would be a good place. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-dev mailing list [email protected] Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
