- I have searched the issues of this repository and believe that this is not a duplicate.
Ⅰ. Issue Description
SAGA STATE_MACHINE_DEF 表 APP_NAME 字段无法替换为自定义字段。
通过 DbStateMachineConfig.setApplicationId("XXX") 设置后的 ApplicationId 无法替换 APP_NAME
且通过 Saga.JSON 文件定义 AppName 也不生效
{
"Name": "test",
"Comment": "test example",
"AppName": "XXX",
"StartState": "step1",
"Version": "0.0.1"
......
}
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Just paste your stack trace here!
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
- xxx
- xxx
- xxx
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
- JDK version :
- OS :
- Others:
5条答案
按热度按时间v7pvogib1#
请问你用的是seata几版本?
14ifxucb2#
statelang里,是不能配置APP_NAME的。
rn0zuynd3#
applicationId
必须要在DbStateMachineConfig.afterPropertiesSet
触发之前设置进去,才会生效。oknwwptz4#
applicationId
必须要在DbStateMachineConfig.afterPropertiesSet
触发之前设置进去,才会生效。我使用的版本是:1.3.0
以下是的代码
没有写入成功的原因:
StateMachineRepositoryImpl.java
可以在StateMachineRepositoryImpl 增加ApplicationId 字段也可以在Parse侧附加ApplicationId 但都不太优雅,希望官方给个合适方案。
nwo49xxi5#
请参照 PR #2838
这个PR添加了Saga自动装配。目前还没有合并。