From a14cb5c95cd17e3db5b3c8c25d0317a8f11cb21d Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Thu, 15 Aug 2024 11:23:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-?= =?UTF-8?q?=E6=8C=87=E6=B4=BE=E5=89=8D=E7=BD=AE=E6=AD=A5=E9=AA=A4=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E9=80=89=E6=B2=A1=E6=9C=89=E5=A4=84=E7=90=86=E4=BA=BA?= =?UTF-8?q?=E7=9A=84=E6=AD=A5=E9=AA=A4=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1223065063620608]后端-指派前置步骤不能选没有处理人的步骤指定 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1223065063620608 --- .../framework/process/dto/ProcessStepHandlerVo.java | 12 ++++++------ .../stephandler/core/IProcessStepHandler.java | 8 ++++++++ .../stephandler/core/ProcessStepHandlerFactory.java | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java b/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java index 7ae1325a..293f9eb2 100644 --- a/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java +++ b/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java @@ -47,8 +47,8 @@ public class ProcessStepHandlerVo implements Comparable,Se private Boolean isHidden; @EntityField(name = "是否移动端支持处理", type = ApiParamType.BOOLEAN) private Boolean isFitMobile; - @EntityField(name = "是否禁用分派处理人", type = ApiParamType.BOOLEAN) - private Boolean disableAssign; + @EntityField(name = "是否允许该类型步骤处理人指派后置步骤的处理人", type = ApiParamType.BOOLEAN) + private Boolean allowDispatchStepWorker; public ProcessStepHandlerVo() { } @@ -210,11 +210,11 @@ public class ProcessStepHandlerVo implements Comparable,Se isFitMobile = fitMobile; } - public Boolean getDisableAssign() { - return disableAssign; + public Boolean getAllowDispatchStepWorker() { + return allowDispatchStepWorker; } - public void setDisableAssign(Boolean disableAssign) { - this.disableAssign = disableAssign; + public void setAllowDispatchStepWorker(Boolean allowDispatchStepWorker) { + this.allowDispatchStepWorker = allowDispatchStepWorker; } } diff --git a/src/main/java/neatlogic/framework/process/stephandler/core/IProcessStepHandler.java b/src/main/java/neatlogic/framework/process/stephandler/core/IProcessStepHandler.java index 9c7e810a..8725f8c2 100644 --- a/src/main/java/neatlogic/framework/process/stephandler/core/IProcessStepHandler.java +++ b/src/main/java/neatlogic/framework/process/stephandler/core/IProcessStepHandler.java @@ -361,4 +361,12 @@ public interface IProcessStepHandler { default boolean disableAssign() { return false; } + + /** + * 是否允许该类型步骤处理人指派后置步骤的处理人 + * @return + */ + default boolean allowDispatchStepWorker() { + return true; + } } diff --git a/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerFactory.java b/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerFactory.java index 7c6314d5..9943bb77 100644 --- a/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerFactory.java +++ b/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerFactory.java @@ -96,7 +96,7 @@ public class ProcessStepHandlerFactory extends ModuleInitializedListenerBase { processStepHandlerVo.setBackwardOutputQuantity(component.getBackwardOutputQuantity()); processStepHandlerVo.setHidden(component.isHidden()); processStepHandlerVo.setFitMobile(component.isFitMobile()); - processStepHandlerVo.setDisableAssign(component.disableAssign()); + processStepHandlerVo.setAllowDispatchStepWorker(component.allowDispatchStepWorker()); processStepHandlerList.add(processStepHandlerVo); } } -- Gitee