Commit ba2de5f2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup deprecated states and trigger reindex after migrating workflow state.

parent a95a5a8e
......@@ -62,5 +62,6 @@ def migrateEventWorkflowHistory(self):
return
workflow_tool = portal.portal_workflow
workflow_tool._jumpToStateFor(self, new_state)
self.reindexObject()
return 'Event workflow migration on %s : %s -> %s' % (
self.getPath(), current_state, new_state)
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>acknowledged</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Acknowledged</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>assigned</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Assigned</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>expired</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Expired</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>new</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>New</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ordered</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Pending</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>This state is deprecated and exists only for the migration.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>responded</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Responded</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
586
587
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment