Commit 456f4d6c authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: remove default variables and state added by pre configuration...

WorkflowTool.py: remove default variables and state added by pre configuration script before convertion.
parent 18169982
......@@ -279,6 +279,10 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
if temp == 0:
# create transitions
if workflow_type_id == 'DCWorkflowDefinition':
# remove default state and variables
for def_var in workflow.objectValues(portal_type='Variable'):
workflow._delObject(def_var.getId())
workflow._delObject('state_draft')
for tid in dc_workflow.transitions:
tdef = dc_workflow.transitions.get(tid)
transition = workflow.newContent(portal_type='Transition', temp_object=temp)
......
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