예제 #1
0
 def convert(_module_exec):
     if _module_exec.__class__ == ModuleExec:
         return
     _module_exec.__class__ = ModuleExec
     for annotation in _module_exec.annotations:
         Annotation.convert(annotation)
     for loop_exec in _module_exec.loop_execs:
         LoopExec.convert(loop_exec)
예제 #2
0
 def convert(_group_exec):
     if _group_exec.__class__ == GroupExec:
         return
     _group_exec.__class__ = GroupExec
     for annotation in _group_exec.annotations:
         Annotation.convert(annotation)
     for item_exec in _group_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)            
예제 #3
0
 def convert(_group_exec):
     if _group_exec.__class__ == GroupExec:
         return
     _group_exec.__class__ = GroupExec
     for annotation in _group_exec.annotations:
         Annotation.convert(annotation)
     for item_exec in _group_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)
예제 #4
0
 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)
예제 #5
0
 def _create_loop_exec(self):
     l_exec_id = self.log.id_scope.getNewId(LoopExec.vtType)
     loop_exec = LoopExec(id=l_exec_id,
                          ts_start=vistrails.core.system.current_time())
     return loop_exec