|
@@ -4209,8 +4209,19 @@ public class OrderController : BaseController
|
|
var workflow = await _workflowDomainService.GetWorkflowAsync(order.WorkflowId, withDefine: true, withSteps: true, withTraces: true,
|
|
var workflow = await _workflowDomainService.GetWorkflowAsync(order.WorkflowId, withDefine: true, withSteps: true, withTraces: true,
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
|
|
|
|
- var nextSteps = await _workflowApplication.GetNextStepsAsync(order.WorkflowId, HttpContext.RequestAborted);
|
|
|
|
- var stepInfo = nextSteps.Steps.FirstOrDefault(m => m.BusinessType == EBusinessType.Send);
|
|
|
|
|
|
+ NextStepsWithOpinionDto<NextStepOption> nextSteps;
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ nextSteps = await _workflowApplication.GetNextStepsAsync(order.WorkflowId, HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
|
|
+ catch (UserFriendlyException e)
|
|
|
|
+ {
|
|
|
|
+ if (e.Message.Contains("未找到对应节点"))
|
|
|
|
+ {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ throw;
|
|
|
|
+ } var stepInfo = nextSteps.Steps.FirstOrDefault(m => m.BusinessType == EBusinessType.Send);
|
|
if (stepInfo == null)
|
|
if (stepInfo == null)
|
|
{
|
|
{
|
|
stringBuilder.Append($"下一步节点: [派单组] 未找到");
|
|
stringBuilder.Append($"下一步节点: [派单组] 未找到");
|