mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I821F1 补充注释
This commit is contained in:
@@ -202,9 +202,8 @@ public class LiteFlowChainELBuilder {
|
||||
try {
|
||||
objectMapper.writeValueAsString(this.chain);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (e instanceof JsonMappingException) {
|
||||
throw new CyclicDependencyException(StrUtil.format("There is a circular dependency in the chain[{}], please check carefully.", chain.getChainId()));
|
||||
throw new CyclicDependencyException(StrUtil.format("There is a circular dependency in the chain[{}], please check carefully.", chain.getChainId(), e));
|
||||
} else {
|
||||
throw new ParseException(e.getMessage());
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ public class Node implements Executable, Cloneable, Rollbackable{
|
||||
|
||||
private String language;
|
||||
|
||||
// 增加该注解,避免在使用 Jackson 序列化检测循环引用时出现不必要异常
|
||||
@JsonIgnore
|
||||
private NodeComponent instance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user