Fixing Workflow States (a real-life example)
When workflows get confused, content items get reset to the default state. If you have a backup or a QA server, you can restore the correct workflow states.
- The problem The upgrade situation that caused messed-up workflow states.
- Dump the workflow states Query the portal_catalog and write simple text files with the original workflow states for each item.
- Fix the site workflow Reset the workflow of the sites to the original workflow.
- Find the differences Use command-line tools to find the differences in workflow states.