[Zope-CMF] Modifying default DCWorkflow so that it copies content
Florent Guillaume
fg@nuxeo.com
Tue, 19 Mar 2002 11:33:29 +0000 (UTC)
You have to create a script that does the move, and call it as
"Script (after)" transition script in your transition.
A transition script is a script that takes one argument, state_change.
See doc/expressions.stx to find out what state_change contains.
The script will have to do the move. After you've moved the object,
you'll have to raise an ObjectMoved exception to inform the workflow:
raise state_change.ObjectMoved(newobject)
Florent
Amardeep Singh <amardeep@iitg.ernet.in> wrote:
> hi,
>
> i would like to modify default workflow that comes with DCWorkflow so that
> on publish transition, it copies(or moves) the object to a particular
> folder. how could i do it.
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com