Commit cafd4f58 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: in asERP5Object only check old workflow types, because in...

WorkflowTool.py: in asERP5Object only check old workflow types, because in test conflict, it crashed by something else?
parent bfa70657
......@@ -254,6 +254,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
def dc_workflow_asERP5Object(self, container, dc_workflow, temp):
# convert DC Workflow to New Workflow
workflow_type_id = dc_workflow.__class__.__name__
if workflow_type_id in ['DCWorkflowDefinition', 'InteractionWorkflowDefinition']:
# Only convert old workflow objects.
if workflow_type_id == 'DCWorkflowDefinition':
if temp == 0:
new_id = 'converting_'+dc_workflow.id
......
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