|
@@ -1185,10 +1185,11 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
/// <summary>
|
|
|
/// 特提至中心(优先派单组其次坐席)
|
|
|
/// </summary>
|
|
|
- /// <returns></returns>
|
|
|
- public async Task RecallToCenterFirstToSendAsync(string workflowId, string opinion, bool isOrderFiled,
|
|
|
+ /// <returns>true 派单组 false 话务部</returns>
|
|
|
+ public async Task<bool> RecallToCenterFirstToSendAsync(string workflowId, string opinion, bool isOrderFiled,
|
|
|
DateTime? expiredTime, CancellationToken cancellationToken)
|
|
|
{
|
|
|
+ bool isPaiDan = true;
|
|
|
var workflow = await GetWorkflowAsync(workflowId, withDefine: true, withSteps: true, withTraces: true, withCountersigns: true,
|
|
|
cancellationToken: cancellationToken);
|
|
|
var sendStep = workflow.Steps.FirstOrDefault(d => d.BusinessType == EBusinessType.Send);
|
|
@@ -1260,7 +1261,9 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
//flowAssignInfo.FlowAssignType = EFlowAssignType.Role;
|
|
|
await RecallAsync(workflow, dto, targetStepDefine, flowAssignInfo, EWorkflowTraceType.Recall, expiredTime, isOrderFiled,
|
|
|
cancellationToken);
|
|
|
+ isPaiDan = false;
|
|
|
}
|
|
|
+ return isPaiDan;
|
|
|
}
|
|
|
|
|
|
//private async Task RecallToTargetStepAsync(Workflow workflow, WorkflowStep targetStep, string opinion, ISessionContext current,
|