|
@@ -219,12 +219,12 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
if (currentStep.HandlerType is EHandlerType.AssignedUser or EHandlerType.Role)
|
|
|
{
|
|
|
//userId
|
|
|
- if (currentStep.AssignedHandlers.All(d => d.Id != userId)) return;
|
|
|
+ if (currentStep.Handlers.All(d => d.Id != userId)) return;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
//orgId
|
|
|
- if (currentStep.AssignedHandlers.All(d => d.Id != orgCode)) return;
|
|
|
+ if (currentStep.Handlers.All(d => d.Id != orgCode)) return;
|
|
|
}
|
|
|
if (currentStep.StepType is EStepType.End)
|
|
|
throw new UserFriendlyException("当前流程已流转到最终步骤");
|
|
@@ -894,7 +894,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
newStep.PreviousStepId = step.PreviousStepId;
|
|
|
newStep.IsMain = step.IsMain;
|
|
|
newStep.ParentId = step.ParentId;
|
|
|
- newStep.AssignedHandlers = step.AssignedHandlers;
|
|
|
+ newStep.Handlers = step.Handlers;
|
|
|
newStep.StartCountersignId = step.StartCountersignId;
|
|
|
newStep.CountersignId = step.CountersignId;
|
|
|
newStep.IsStartedCountersignSummary = step.IsStartedCountersignSummary;
|
|
@@ -1377,7 +1377,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
{
|
|
|
foreach (var step in stepBox.Steps)
|
|
|
{
|
|
|
- if (predicate(step.Status) && (step.AssignedHandlers.Any(d => d.Id == orgCode) || step.AssignedHandlers.Any(d => d.Id == userId)))
|
|
|
+ if (predicate(step.Status) && (step.Handlers.Any(d => d.Id == orgCode) || step.Handlers.Any(d => d.Id == userId)))
|
|
|
return (stepBox, step);
|
|
|
}
|
|
|
}
|
|
@@ -1457,7 +1457,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
var isMain = handlers.Count == 1 || (handlers.Count > 1 || handlerIds.First() == nextMainHandler);
|
|
|
|
|
|
step.ParentId = stepBox.Id;
|
|
|
- step.AssignedHandlers = handlers;
|
|
|
+ step.Handlers = handlers;
|
|
|
step.NextStepCode = step.StepType is EStepType.End ? string.Empty : nextStepCode;
|
|
|
step.IsMain = isMain;
|
|
|
step.PreviousStepId = prevStepId;
|