Commit a4244ab9996f2e8f9951ed4a495dc7e027f862be
1 parent
376114a8
fix:【BPM 工作流】存在加签时,退回报 Execution could not be found with id null
Showing
1 changed file
with
3 additions
and
1 deletions
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskServiceImpl.java
| ... | ... | @@ -898,7 +898,9 @@ public class BpmTaskServiceImpl implements BpmTaskService { |
| 898 | 898 | if (!returnTaskKeyList.contains(task.getTaskDefinitionKey())) { |
| 899 | 899 | return; |
| 900 | 900 | } |
| 901 | - runExecutionIds.add(task.getExecutionId()); | |
| 901 | + if (task.getExecutionId() != null) { | |
| 902 | + runExecutionIds.add(task.getExecutionId()); | |
| 903 | + } | |
| 902 | 904 | |
| 903 | 905 | // 判断是否分配给自己任务,因为会签任务,一个节点会有多个任务 |
| 904 | 906 | if (isAssignUserTask(userId, task)) { // 情况一:自己的任务,进行 RETURN 标记 | ... | ... |