Workflow migration

In one product I need to remove a custom workflow, and map it's states into the default Plone workflow.

I wrote this upgrade step trying to map the states, but it looks like there are a better way to do it.

Can someone please provide me the preferred way to map workflow states to use in this upgrade step?

Also how is it done into ZMI? are there any docs to learn how to do it?

@pbauer suggested to use WorkflowChainUpdater class from ftw.upgrade. I'll take a look at it now!

We used ftw.upgrade to make the upgrade step, and it work like a charm!

1 Like