xf 1 년 전
부모
커밋
5c487ee9f3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Hotline.Application/FlowEngine/WorkflowApplication.cs

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

@@ -166,9 +166,9 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
         if (startStep == null)
             throw new UserFriendlyException("未正确配置开始节点");
         //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));
-        
+
 
         return new DefineWithSelectionStepsDto
         {