|
@@ -1310,19 +1310,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
if (step.StepType is EStepType.End)
|
|
|
throw new UserFriendlyException("当前流程已流转到最终步骤");
|
|
|
|
|
|
- if (dto.IsStartCountersign && !counterSignType.HasValue)
|
|
|
+ if (dto.HandleMode is not EHandleMode.Normal && !counterSignType.HasValue)
|
|
|
throw new UserFriendlyException("缺少会签类型参数");
|
|
|
|
|
|
- ////创建会签数据
|
|
|
- //if (dto.IsStartCountersign)
|
|
|
- //{
|
|
|
- // var exists = workflow.Countersigns.Any(d =>
|
|
|
- // !d.IsCompleted() && d.StarterId == _sessionContext.RequiredUserId);
|
|
|
- // if (exists)
|
|
|
- // throw new UserFriendlyException("该用户在当前流程存在未结束会签");
|
|
|
- // await StartCountersignAsync(workflow, step, dto, flowAssignType, counterSignType, expiredTime, cancellationToken);
|
|
|
- //}
|
|
|
-
|
|
|
//办理参数
|
|
|
//_mapper.Map(dto, step);
|
|
|
step.NextHandlers = dto.NextHandlers;
|