def METHOD_NAME(self):
    # Complete the ready tasks in the subprocess
    ready = self.workflow.get_tasks(TaskState.READY)
    while len(ready) > 0:
        ready[0].run()
        ready = self.workflow.get_tasks(TaskState.READY)