

def translateWorkflow(_workflow):

    def update_workflow(old_obj, translate_dict):
        return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)
    translate_dict = {
        'DBGroup': {
            'workflow': update_workflow,
        },
    }
    workflow = DBWorkflow.update_version(_workflow, translate_dict)
    workflow.db_version = '1.0.3'
    return workflow

dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v1_0_3/translate/v1_0_4.py translateWorkflow/original