yutool opened a new issue, #7954: URL: https://github.com/apache/incubator-seata/issues/7954
### Check Ahead - [x] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate. - [ ] I am willing to try to fix this bug myself. ### Ⅰ. Issue Description 代码如下所示: ```java @Component @LocalTCC public class OrderCreateTccAction { @TwoPhaseBusinessAction(name = "orderCreateTccAction", useTCCFence = true) @Transactional public boolean try(@BusinessActionContextParameter(paramName = "userId") String userId, BusinessActionContext ctx) { // ... ctx.getActionContext().put("orderId", 123); } public boolean commit(BusinessActionContext ctx) { } public boolean rollback(BusinessActionContext ctx) { // userId可以获取到 String userId = (String) ctx.getActionContext("userId"); // orderId为空 Integer orderId = (Integer) ctx.getActionContext("orderId"); } } ``` 获取不到try方法中设置的orderId,是不允许动态put吗,只能用@BusinessActionContextParameter?那try方法运行中生成的参数需要传递怎么办呢。 ### Ⅱ. Describe what happened _No response_ ### Ⅲ. Describe what you expected to happen _No response_ ### Ⅳ. How to reproduce it (as minimally and precisely as possible) _No response_ ### Ⅴ. Anything else we need to know? _No response_ ### Ⅵ. Environment seata版本:2.5.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
