SpiffWorkflow/workflow.py
def complete_task_from_id(self, task_id):
        """
        Runs the task with the given id.

        :type  task_id: integer
        :param task_id: The id of the Task object.
        """
        if task_id is None:
            raise WorkflowException(self.spec, 'task_id is None')
        for task in self.task_tree:
            if task.id == task_id:
                return task.complete()
        msg = 'A task with the given task_id (%s) was not found' % task_id
        raise WorkflowException(self.spec, msg)
def complete_task_from_id(self, task_id):
        """
        Runs the task with the given id.

        :type  task_id: integer
        :param task_id: The id of the Task object.
        """
        if task_id is None:
            raise WorkflowException(self.spec, 'task_id is None')
        for task in self.task_tree:
            if task.id == task_id:
                return task.complete()
        msg = 'A task with the given task_id (%s) was not found' % task_id
        raise WorkflowException(self.spec, msg)
def complete_task_from_id ( self , task_id ) : if task_id is None : raise WorkflowException ( self . spec , 'task_id is None' ) for task in self . task_tree : if task . id == task_id : return task . complete ( ) msg = 'A task with the given task_id (%s) was not found' % task_id raise WorkflowException ( self . spec , msg )
Runs the task with the given id.

        :type  task_id: integer
        :param task_id: The id of the Task object.
Runs the task with the given id .