* 阻塞任务
(id: string, reason: string)
| 425 | * 阻塞任务 |
| 426 | */ |
| 427 | public blockTask(id: string, reason: string): WorkflowTask { |
| 428 | const task = this.updateTask(id, { status: 'blocked' }); |
| 429 | this.addTaskNote(id, `任务被阻塞: ${reason}`); |
| 430 | return task; |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * 取消任务 |
nothing calls this directly
no test coverage detected