Exemple #1
0
 def convert(_log):
     if _log.__class__ == Log:
         return
     _log.__class__ = Log
     for machine in _log.machine_list:
         Machine.convert(machine)
     for workflow_exec in _log.workflow_execs:
         WorkflowExec.convert(workflow_exec)
 def convert(_wf_exec):
     if _wf_exec.__class__ == WorkflowExec:
         return
     _wf_exec.__class__ = WorkflowExec
     for annotation in _wf_exec.annotations:
         Annotation.convert(annotation)
     for machine in _wf_exec.machine_list:
         Machine.convert(machine)
     for item_exec in _wf_exec.item_execs:
         if item_exec.vtType == ModuleExec.vtType:
             ModuleExec.convert(item_exec)
         elif item_exec.vtType == GroupExec.vtType:
             GroupExec.convert(item_exec)
         elif item_exec.vtType == LoopExec.vtType:
             LoopExec.convert(item_exec)