|
@@ -110,14 +110,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
PublishStrategy.ParallelWhenAll, cancellationToken);
|
|
|
|
|
|
//firstStep是否为end,t: 实际办理节点为startStep, 并且handlerId赋值 f: 实际办理节点为firstStep, handlerId未赋值
|
|
|
- workflow.UpdateActualStepWhenHandle(startStep,
|
|
|
- current.RequiredUserId, current.UserName,
|
|
|
- current.RequiredOrgId, current.OrgName,
|
|
|
- current.OrgAreaCode, current.OrgAreaName,
|
|
|
- current.OrgLevel);
|
|
|
+ workflow.UpdateActualStepWhenHandle(startStep, current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
|
|
|
- workflow.UpdateCurrentStepWhenHandle(startStep,
|
|
|
- current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
+ workflow.UpdateCurrentStepWhenHandle(startStep, current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
|
|
|
var endTrace = await EndAsync(workflow, dto, firstStepDefine, startStep, current, expiredTime, cancellationToken);
|
|
|
return;
|
|
@@ -480,17 +475,12 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
if (workflow.ActualHandleStepId == currentStep.Id)
|
|
|
{
|
|
|
//更新实际办理节点信息
|
|
|
- workflow.UpdateActualStepWhenHandle(currentStep,
|
|
|
- current.RequiredUserId, current.UserName,
|
|
|
- current.RequiredOrgId, current.OrgName,
|
|
|
- current.OrgAreaCode, current.OrgAreaName,
|
|
|
- current.OrgLevel);
|
|
|
+ workflow.UpdateActualStepWhenHandle(currentStep, current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
}
|
|
|
|
|
|
if (workflow.CurrentStepId == currentStep.Id)
|
|
|
{
|
|
|
- workflow.UpdateCurrentStepWhenHandle(currentStep,
|
|
|
- current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
+ workflow.UpdateCurrentStepWhenHandle(currentStep, current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
}
|
|
|
|
|
|
//检查是否流转到流程终点
|
|
@@ -661,7 +651,13 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
workflow.SetStatusRunnable();
|
|
|
|
|
|
//更新实际办理节点信息
|
|
|
- workflow.UpdateActualStepWhenAssign(newPrevStep, prevStep.HandlerOrgId, prevStep.HandlerOrgName);
|
|
|
+ workflow.UpdateActualStepWhenAssign(newPrevStep,new FlowStepHandler
|
|
|
+ {
|
|
|
+ UserId = prevStep.HandlerId,
|
|
|
+ Username = prevStep.HandlerName,
|
|
|
+ OrgId = prevStep.HandlerOrgId,
|
|
|
+ OrgName = prevStep.HandlerOrgName,
|
|
|
+ });
|
|
|
|
|
|
workflow.UpdateCurrentStepWhenAssign(newPrevStep, new FlowStepHandler
|
|
|
{
|
|
@@ -1134,7 +1130,13 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
var newStartStep =
|
|
|
await DuplicateStepWithTraceAsync(workflow, targetStep, EWorkflowTraceType.Recall, cancellationToken);
|
|
|
|
|
|
- workflow.UpdateActualStepWhenAssign(targetStep, targetStep.HandlerOrgId, targetStep.HandlerOrgName);
|
|
|
+ workflow.UpdateActualStepWhenAssign(targetStep,new FlowStepHandler
|
|
|
+ {
|
|
|
+ UserId = targetStep.HandlerId,
|
|
|
+ Username = targetStep.HandlerName,
|
|
|
+ OrgId = targetStep.HandlerOrgId,
|
|
|
+ OrgName = targetStep.HandlerOrgName,
|
|
|
+ });
|
|
|
|
|
|
workflow.UpdateCurrentStepWhenAssign(targetStep, new FlowStepHandler
|
|
|
{
|
|
@@ -1498,6 +1500,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
workflow.UpdateCurrentStepWhenHandle(endStep,
|
|
|
current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
workflow.UpdateCurrentStepAcceptTime(endStep.AcceptTime.Value);
|
|
|
+
|
|
|
+ workflow.UpdateActualStepWhenHandle(endStep, current.OrgAreaCode, current.OrgAreaName, current.OrgLevel);
|
|
|
+ workflow.UpdateActualStepAcceptTime(endStep.AcceptTime.Value);
|
|
|
|
|
|
await _workflowRepository.UpdateAsync(workflow, cancellationToken);
|
|
|
|
|
@@ -1566,7 +1571,6 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
{
|
|
|
if (dto.IsStartCountersign) return;
|
|
|
if (workflow.IsInCountersign) return;
|
|
|
- if (nextStepDefine.StepType is EStepType.Summary or EStepType.End) return;
|
|
|
|
|
|
if (nextStepDefine.BusinessType is EBusinessType.Seat or EBusinessType.Send)
|
|
|
{
|
|
@@ -1596,15 +1600,16 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
{
|
|
|
//坐席->派单不选办理对象时
|
|
|
workflow.UpdateActualStepWhenAssign(nextSteps.First(),
|
|
|
- actualHandleOrgCode: OrgSeedData.CenterId,
|
|
|
- actualHandleOrgName: OrgSeedData.CenterName);
|
|
|
+ new FlowStepHandler
|
|
|
+ {
|
|
|
+ OrgId = OrgSeedData.CenterId,
|
|
|
+ OrgName = OrgSeedData.CenterName
|
|
|
+ });
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
var nextHandler = dto.NextHandlers.First();
|
|
|
- workflow.UpdateActualStepWhenAssign(nextSteps.First(),
|
|
|
- actualHandleOrgCode: nextHandler.OrgId,
|
|
|
- actualHandleOrgName: nextHandler.OrgName);
|
|
|
+ workflow.UpdateActualStepWhenAssign(nextSteps.First(),nextHandler);
|
|
|
}
|
|
|
|
|
|
//if ( /*workflow.FlowType is EFlowType.Handle &&*/
|
|
@@ -2301,7 +2306,13 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
null, expiredTime, cancellationToken: cancellationToken)).First();
|
|
|
|
|
|
//更新实际办理节点信息
|
|
|
- workflow.UpdateActualStepWhenAssign(targetStepNew, targetStep.HandlerOrgId, targetStep.HandlerOrgName);
|
|
|
+ workflow.UpdateActualStepWhenAssign(targetStepNew,new FlowStepHandler
|
|
|
+ {
|
|
|
+ UserId = targetStep.HandlerId,
|
|
|
+ Username = targetStep.HandlerName,
|
|
|
+ OrgId = targetStep.HandlerOrgId,
|
|
|
+ OrgName = targetStep.HandlerOrgName
|
|
|
+ });
|
|
|
|
|
|
workflow.UpdateCurrentStepWhenAssign(targetStepNew, new FlowStepHandler
|
|
|
{
|
|
@@ -2588,8 +2599,13 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
if (startCountersignStep.Id == workflow.TopCountersignStepId)
|
|
|
{
|
|
|
workflow.UpdateActualStepWhenAssign(newStep,
|
|
|
- startCountersignStep.HandlerOrgId,
|
|
|
- startCountersignStep.HandlerOrgName);
|
|
|
+ new FlowStepHandler
|
|
|
+ {
|
|
|
+ UserId = startCountersignStep.HandlerId,
|
|
|
+ Username = startCountersignStep.HandlerName,
|
|
|
+ OrgId = startCountersignStep.HandlerOrgId,
|
|
|
+ OrgName = startCountersignStep.HandlerOrgName
|
|
|
+ });
|
|
|
|
|
|
workflow.UpdateCurrentStepWhenAssign(newStep,
|
|
|
new FlowStepHandler
|