|
@@ -463,8 +463,8 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
|
|
|
//赋值当前节点的下级办理节点
|
|
|
if (dto.IsStartCountersign
|
|
|
- //|| (currentStep.IsInCountersign() &&
|
|
|
- // !currentStep.IsTopCountersignEndStep(workflow.TopCountersignStepId))
|
|
|
+ //|| (currentStep.IsInCountersign() &&
|
|
|
+ // !currentStep.IsTopCountersignEndStep(workflow.TopCountersignStepId))
|
|
|
)
|
|
|
{
|
|
|
currentStep.CreateCountersignSteps(nextSteps);
|
|
@@ -1422,18 +1422,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
//会签未全部办理则不创建汇总节点
|
|
|
if (prevStep.StartedCountersignHasAllHandled())
|
|
|
{
|
|
|
- // 会签汇总节点赋值会签办理节点办理意见
|
|
|
- var countersignHandleSteps = workflow.Steps.Where(d =>
|
|
|
- d.CountersignId == prevStep.StartCountersignId && d.CountersignPosition == ECountersignPosition.Inner).ToList();
|
|
|
- var sb = new StringBuilder();
|
|
|
- foreach (var countersignHandleStep in countersignHandleSteps)
|
|
|
- {
|
|
|
- sb.AppendLine($"{countersignHandleStep.GetActualHandler()?.GetHandler().Value} : {countersignHandleStep.Opinion}");
|
|
|
- }
|
|
|
-
|
|
|
// 创建会签汇总节点
|
|
|
var countersignEndStep =
|
|
|
- await CreateCountersignEndStepAsync(prevStep, dto, expiredTime, sb.ToString(), cancellationToken);
|
|
|
+ await CreateCountersignEndStepAsync(prevStep, dto, expiredTime, cancellationToken);
|
|
|
nextSteps = new List<WorkflowStep> { countersignEndStep };
|
|
|
|
|
|
//create trace
|
|
@@ -1446,7 +1437,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
}
|
|
|
|
|
|
private async Task<WorkflowStep> CreateCountersignEndStepAsync(WorkflowStep countersignStartStep,
|
|
|
- BasicWorkflowDto dto, DateTime? expiredTime, string? opinion = null, CancellationToken cancellationToken = default)
|
|
|
+ BasicWorkflowDto dto, DateTime? expiredTime, CancellationToken cancellationToken = default)
|
|
|
{
|
|
|
var csEndStep = _mapper.Map<WorkflowStep>(countersignStartStep);
|
|
|
csEndStep.Status = EWorkflowStepStatus.WaitForAccept;
|
|
@@ -1468,9 +1459,6 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
csEndStep.Reset();
|
|
|
csEndStep.ResetParameters();
|
|
|
|
|
|
- if (!string.IsNullOrEmpty(opinion))
|
|
|
- csEndStep.Opinion = opinion;
|
|
|
-
|
|
|
await _workflowStepRepository.AddAsync(csEndStep, cancellationToken);
|
|
|
return csEndStep;
|
|
|
}
|
|
@@ -1917,13 +1905,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var opinion = stepDefine.StepType is EStepType.Summary
|
|
|
- ? $"{prevStep.GetActualHandler()?.GetHandler().Value} : {prevStep.Opinion}"
|
|
|
- : null;
|
|
|
-
|
|
|
return await CreateStepsAsync(workflow, stepDefine, prevStep, dto, flowAssignInfo.FlowAssignType, handlers,
|
|
|
stepHandlers, null, EWorkflowStepStatus.WaitForAccept, ECountersignPosition.None,
|
|
|
- true, traceStatus, null, expiredTime, opinion, cancellationToken);
|
|
|
+ true, traceStatus, null, expiredTime, cancellationToken);
|
|
|
}
|
|
|
|
|
|
private async Task<List<WorkflowStep>> CreateStepsAsync(
|
|
@@ -1941,7 +1925,6 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
EWorkflowTraceStatus traceStatus,
|
|
|
EHandlerType? handlerType = null,
|
|
|
DateTime? expiredTime = null,
|
|
|
- string? opinion = null,
|
|
|
CancellationToken cancellationToken = default
|
|
|
)
|
|
|
{
|
|
@@ -1952,7 +1935,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
{
|
|
|
var step = CreateStep(workflow, stepDefine, prevStep, flowAssignType, new List<Kv> { handler },
|
|
|
stepHandlers, dto.NextStepCode, dto.NextMainHandler, countersignId,
|
|
|
- stepStatus, csPosition, expiredTime, dto.NextStepName, isOrigin, handlerType, opinion);
|
|
|
+ stepStatus, csPosition, expiredTime, dto.NextStepName, isOrigin, handlerType);
|
|
|
|
|
|
steps.Add(step);
|
|
|
}
|
|
@@ -1961,7 +1944,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
{
|
|
|
var step = CreateStep(workflow, stepDefine, prevStep, flowAssignType, handlers, stepHandlers,
|
|
|
dto.NextStepCode, dto.NextMainHandler, countersignId,
|
|
|
- stepStatus, csPosition, expiredTime, dto.NextStepName, isOrigin, handlerType, opinion);
|
|
|
+ stepStatus, csPosition, expiredTime, dto.NextStepName, isOrigin, handlerType);
|
|
|
|
|
|
steps.Add(step);
|
|
|
}
|
|
@@ -2231,8 +2214,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
DateTime? expiredTime,
|
|
|
string stepName,
|
|
|
bool isOrigin,
|
|
|
- EHandlerType? handlerType = null, //动态节点依据动态策略判断
|
|
|
- string? opinion = null //汇总以及会签汇总节点需要提前为option赋值之前办理节点内容
|
|
|
+ EHandlerType? handlerType = null //动态节点依据动态策略判断
|
|
|
)
|
|
|
{
|
|
|
if (!handlers.Any())
|
|
@@ -2260,9 +2242,6 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
if (handlerType.HasValue)
|
|
|
step.HandlerType = handlerType.Value;
|
|
|
|
|
|
- if (!string.IsNullOrEmpty(opinion))
|
|
|
- step.Opinion = opinion;
|
|
|
-
|
|
|
return step;
|
|
|
}
|
|
|
|