예제 #1
0
    def Execute(self, data=None):
        if not data:
            data = {}

        task_finished.connect(self.task_finished)
        try:
            flow_do(self.flow_task, self, **data)
        finally:
            task_finished.disconnect(self.task_finished)
        assert self._task, 'Flow task {} not finished'.format(self.flow_task.name)

        return self
예제 #2
0
    def Execute(self, data=None):
        if not data:
            data = {}

        task_finished.connect(self.task_finished)

        try:
            flow_do(self.flow_task, self, **data)
        finally:
            task_finished.disconnect(self.task_finished)
        assert self._task, 'Flow task {} not finished'.format(self.flow_task.name)

        return self