Browse Source

fixed: get recall steps include start step

xf 1 year ago
parent
commit
82fde59506
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Hotline.Application/FlowEngine/WorkflowApplication.cs

+ 2 - 2
src/Hotline.Application/FlowEngine/WorkflowApplication.cs

@@ -595,8 +595,8 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
                         : null
                         : null
                 : CheckFlowDirection(currentStep.BusinessType, stepDefine.BusinessType);
                 : CheckFlowDirection(currentStep.BusinessType, stepDefine.BusinessType);
 
 
-            if (originStep.NextHandlers.Any()) 
-                stepOption.Handler = originStep.NextHandlers.First(d => d.Key == originStep.HandlerId || d.Key == originStep.HandlerOrgId);
+            if (originStep.Handlers.Any()) 
+                stepOption.Handler = originStep.Handlers.FirstOrDefault(d => d.Key == originStep.HandlerId || d.Key == originStep.HandlerOrgId);
 
 
             steps.Add(stepOption);
             steps.Add(stepOption);
         }
         }