<mark>此插件，主要社区贡献人（fuzi1996）</mark>


```xml
<dependency>
    <groupId>org.noear</groupId>
    <artifactId>seata-solon-plugin</artifactId>
</dependency>
```

### 1、描述

基于 seata 适配的，分布式事件管理插件。


### 2、示例项目

* https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9021-config-discovery_nacos
* https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9903-seata-xa
* https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9904-seata-at
* https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9905-seata-tcc
* https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9906-seata-saga



### 3、使用注意

* 支持 `@GlobalTransactional`, `@TwoPhaseBusinessAction`, `@BusinessActionContextParameter` 注解
* saga 模式目前仅跑通一个官方单测，谨慎使用
* saga 模式下,脚本高度改为 SnEL 因此不支持以下写法:
  * `.[xxx]` 须改为 `.xxx`
  * `#this` 不支持
  * `#root` 支持

其他详见

https://gitee.com/opensolon/solon-examples/tree/main/9.Solon-Cloud/demo9906-seata-saga/src/main/resources/seata/saga/statelang