feat(REQ-2924) - 新增 starterProperties 属性,用于控制是否动态注册原始的 FeignClient

This commit is contained in:
wangli 2024-09-10 17:50:57 +08:00
parent eb461cf05c
commit 9d1b477aaa
2 changed files with 6 additions and 1 deletions

View File

@ -19,9 +19,13 @@ import static cn.axzo.workflow.common.enums.RpcInvokeModeEnum.ASYNC;
@ConfigurationProperties(prefix = "workflow.engine.starter")
public class WorkflowEngineStarterProperties {
/**
*
* 是否开启原始 ProcessInstanceApiProcessTaskApi 等类似的 FeignClient具体可用的 API 参考 cn.axzo.workflow.client.feign
* <p>
* 默认 false优先 starter 提供的 coreServicemanageServer
* true 会为当前应用注册原始 xxxApi FeignClient
*/
private Boolean metaFeign = false;
/**
* 特殊用途不建议接入方使用
*/

View File

@ -1,6 +1,7 @@
workflow:
engine:
starter:
meta-feign: false # 是否开启原始 ProcessInstanceApi、ProcessTaskApi 等类似的 FeignClient默认 false优先 starter 提供的 coreService、manageServer。为 true 时,会为当前应用注册原始 xxxApi FeignClient
invoke-mode: async # 调用 workflowCoreService 中方法的方式可选值sync、async
join-container-group: false # 本地开发机启动时,是否将 MQ 消费者加入到集群中,默认不加入,并默认生成 GID_${spring.application.name}_workflow_engine_${spring.profiles.active}_debugging_consumer 的消费者组,该参数只对非容器环境生效
manageable: false # 是否可管理,默认 false 开启后 Spring 容器中将多一个 WorkflowManageService 的 Bean可调用受限访问接口