|
@@ -1,13 +1,20 @@
|
|
|
package com.x.processplatform.core.entity.element;
|
|
package com.x.processplatform.core.entity.element;
|
|
|
|
|
|
|
|
|
|
+import org.apache.commons.lang3.BooleanUtils;
|
|
|
|
|
+
|
|
|
import com.x.base.core.entity.JsonProperties;
|
|
import com.x.base.core.entity.JsonProperties;
|
|
|
import com.x.base.core.project.annotation.FieldDescribe;
|
|
import com.x.base.core.project.annotation.FieldDescribe;
|
|
|
|
|
|
|
|
public class RouteProperties extends JsonProperties {
|
|
public class RouteProperties extends JsonProperties {
|
|
|
|
|
|
|
|
|
|
+ private static final long serialVersionUID = -7792270726211126577L;
|
|
|
|
|
+
|
|
|
@FieldDescribe("是否启用异步返回.")
|
|
@FieldDescribe("是否启用异步返回.")
|
|
|
private Boolean asyncSupported = true;
|
|
private Boolean asyncSupported = true;
|
|
|
|
|
|
|
|
|
|
+ @FieldDescribe("选择优先路由时是否直接执行路由(一票否决),默认true.")
|
|
|
|
|
+ private Boolean soleDirect;
|
|
|
|
|
+
|
|
|
public Boolean getAsyncSupported() {
|
|
public Boolean getAsyncSupported() {
|
|
|
return asyncSupported;
|
|
return asyncSupported;
|
|
|
}
|
|
}
|
|
@@ -16,4 +23,12 @@ public class RouteProperties extends JsonProperties {
|
|
|
this.asyncSupported = asyncSupported;
|
|
this.asyncSupported = asyncSupported;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public Boolean getSoleDirect() {
|
|
|
|
|
+ return BooleanUtils.isNotFalse(soleDirect);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setSoleDirect(Boolean soleDirect) {
|
|
|
|
|
+ this.soleDirect = soleDirect;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|