[Zope-CMF] Switching workflow causes affected objects to change state?

Florent Guillaume fg at nuxeo.com
Fri Nov 28 19:32:44 EST 2003


In article <bq4gji+u1mp at eGroups.com> you write:
> Should switching the workflow associated with a portal type cause any 
> affected objects to change state, even if the new workflow supports all 
> the states provided by the previous workflow?

Yes, it will change state. An object does not have one workflow state,
but one state for each of the workflows it belongs to (same thing for
other variables).

So if you change the name of the workflow associated with a portal type,
the old state will be lost. Unless you write a small external method
that goes and dig into the objects and massages their
ob.workflow_history attribute (whose format is quite easy to
understand).

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com



More information about the Zope-CMF mailing list