mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-23 19:58:10 +08:00
enhancement #I595MU 在slot的元数据里增加每个组件执行的耗时和是否成功结果
This commit is contained in:
@@ -30,6 +30,10 @@ public class CmpStep {
|
||||
//是否成功
|
||||
private boolean success;
|
||||
|
||||
//有exception,success一定为false
|
||||
//但是success为false,不一定有exception,因为有可能没执行到,或者没执行结束(any)
|
||||
private Exception exception;
|
||||
|
||||
public CmpStep(String nodeId, String nodeName, CmpStepTypeEnum stepType) {
|
||||
this.nodeId = nodeId;
|
||||
this.nodeName = nodeName;
|
||||
@@ -76,6 +80,14 @@ public class CmpStep {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public Exception getException() {
|
||||
return exception;
|
||||
}
|
||||
|
||||
public void setException(Exception exception) {
|
||||
this.exception = exception;
|
||||
}
|
||||
|
||||
public String buildString() {
|
||||
if (stepType.equals(CmpStepTypeEnum.SINGLE)) {
|
||||
if (StrUtil.isBlank(nodeName)){
|
||||
|
||||
Reference in New Issue
Block a user