瀏覽代碼

查询下一节点可用参数时,增加当前节点参数handleType,stepType

xf 6 月之前
父節點
當前提交
ce396cdb92

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

@@ -665,6 +665,8 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
             //ExpiredTime = workflow.ExpiredTime,
             CanStartCountersign = currentStep.CanStartCountersign,
             CurrentStepBusinessType = currentStep.BusinessType,
+            CurrentStepType = currentStep.StepType,
+            CurrentHandlerType = currentStep.HandlerType,
             TimeTypeOptions = EnumExts.GetDescriptions<ETimeType>().ToList(),
             IsMainHandlerShow = workflow.WorkflowDefinition.IsMainHandlerShow,
             StepId = currentStep.Id,

+ 10 - 0
src/Hotline.Share/Dtos/FlowEngine/NextStepsDto.cs

@@ -34,6 +34,16 @@ public class NextStepsDto
     /// </summary>
     public EBusinessType CurrentStepBusinessType { get; set; }
 
+    /// <summary>
+    /// 模板配置节点类型
+    /// </summary>
+    public EStepType CurrentStepType { get; set; }
+
+    /// <summary>
+    /// 办理对象类型
+    /// </summary>
+    public EHandlerType CurrentHandlerType { get; set; }
+    
     /// <summary>
     /// 当前办理节点部门等级(非部门等级办理时无效)
     /// </summary>