示例#1
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)            
示例#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(_loop_iteration):
        from vistrails.core.log.module_exec import ModuleExec
        from vistrails.core.log.group_exec import GroupExec

        if _loop_iteration.__class__ == LoopIteration:
            return
        _loop_iteration.__class__ = LoopIteration
        for item_exec in _loop_iteration.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(_loop_iteration):
        from vistrails.core.log.module_exec import ModuleExec
        from vistrails.core.log.group_exec import GroupExec

        if _loop_iteration.__class__ == LoopIteration:
            return
        _loop_iteration.__class__ = LoopIteration
        for item_exec in _loop_iteration.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 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)
示例#6
0
 def _create_module_exec(self, module, module_id, module_name, cached):
     m_exec_id = self.log.id_scope.getNewId(ModuleExec.vtType)
     module_exec = ModuleExec(id=m_exec_id,
                              machine_id=self.machine.id,
                              module_id=module_id,
                              module_name=module_name,
                              cached=cached,
                              ts_start=vistrails.core.system.current_time(),
                              completed=0)
     return module_exec