diff --git a/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java b/src/main/java/neatlogic/framework/process/dto/ProcessStepHandlerVo.java index 7ae1325aa4d81df58958207a3b5ab377fd6119fa..293f9eb2f92f15209c2f52b840c6230c88d4deca 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 9c7e810aaf13d5c8f72f3a8f58163e67e1582c34..8725f8c2cf9492f83ae12091e36359d0d52c3e5a 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 7c6314d50bf22db8a14332ae17ea00add3beba20..9943bb77bb6f8e01b09a7e08b52d0bd9c4de2804 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); } }