Example #1
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 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)
    def convert(_loop_exec):
        from core.log.module_exec import ModuleExec
        from core.log.group_exec import GroupExec

        if _loop_exec.__class__ == LoopExec:
            return
        _loop_exec.__class__ = LoopExec
        for item_exec in _loop_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)
Example #3
0
    def convert(_loop_exec):
        from core.log.module_exec import ModuleExec
        from core.log.group_exec import GroupExec

        if _loop_exec.__class__ == LoopExec:
            return
        _loop_exec.__class__ = LoopExec
        for item_exec in _loop_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)
Example #4
0
 def create_group_exec(self, group, module_id, group_name, cached):
     g_exec_id = self.log.id_scope.getNewId(GroupExec.vtType)
     if isinstance(group, Abstraction):
         group_type = 'SubWorkflow'
     else:
         group_type = 'Group'
     group_exec = GroupExec(id=g_exec_id,
                            machine_id=self.machine.id,
                            module_id=module_id,
                            group_name=group_name,
                            group_type=group_type,
                            cached=cached,
                            ts_start=core.system.current_time(),
                            completed=0)
     return group_exec