update - 工作流的主要动作添加异步接口支持

This commit is contained in:
wangli 2024-04-16 11:36:28 +08:00
parent 8f5368494d
commit bc236dd60f

View File

@ -100,13 +100,13 @@ public class CustomTaskHelper {
*/
public static void validTask(HistoricTaskInstance historicTaskInstance, TaskEntity taskEntity,
BpmnTaskDelegateAssigner originTaskAssigner) {
if (Objects.isNull(taskEntity)) {
throw new WorkflowEngineException(TASK_COMPLETE_FAIL_NOT_EXISTS);
}
if (Objects.nonNull(historicTaskInstance) && Objects.nonNull(historicTaskInstance.getEndTime())) {
throw new WorkflowEngineException(TASK_HAS_BEEN_COMPLETE);
}
if (Objects.isNull(historicTaskInstance) && Objects.isNull(taskEntity)) {
throw new WorkflowEngineException(TASK_COMPLETE_FAIL_NOT_EXISTS);
}
// FIXME by wangli: currentAssignee 去掉 OUID 前的代码
// if (Objects.nonNull(originTaskAssigner) &&
// !Objects.equals(taskEntity.getAssignee(), originTaskAssigner.buildAssigneeId())) {