Kaynağa Gözat

旧流程明细接口,过滤非流程节点

xf 4 ay önce
ebeveyn
işleme
131eee2efe

+ 1 - 0
src/Hotline.Api/Controllers/WorkflowController.cs

@@ -442,6 +442,7 @@ public class WorkflowController : BaseController
     {
         var workflow = await _workflowDomainService.GetWorkflowAsync(workflowId, withTracesTree: true,
             cancellationToken: HttpContext.RequestAborted);
+        workflow.Traces = workflow.Traces.Where(d => d.TraceStyle == ETraceStyle.Flow).ToList();
 
         var workflowDto = _mapper.Map<WorkflowDto>(workflow);
         if (workflowDto.Traces.Any())