xf 1 жил өмнө
parent
commit
5c487ee9f3

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

@@ -166,9 +166,9 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
         if (startStep == null)
         if (startStep == null)
             throw new UserFriendlyException("未正确配置开始节点");
             throw new UserFriendlyException("未正确配置开始节点");
         //var firstStepDefines = definition.FindSteps(startStep.NextSteps.Select(d => d.Code));
         //var firstStepDefines = definition.FindSteps(startStep.NextSteps.Select(d => d.Code));
-        var firstStep = definition.FindStep(startStep.Code);
+        var firstStep = definition.FindStep(startStep.NextSteps.First().Code);
         var secondStepDefines = definition.FindSteps(firstStep.NextSteps.Select(d => d.Code));
         var secondStepDefines = definition.FindSteps(firstStep.NextSteps.Select(d => d.Code));
-        
+
 
 
         return new DefineWithSelectionStepsDto
         return new DefineWithSelectionStepsDto
         {
         {