enhancement #I595MU 在slot的元数据里增加每个组件执行的耗时和是否成功结果

This commit is contained in:
bryan31
2022-05-30 00:04:14 +08:00
parent 7280f5b1ec
commit 2286ecffa7

View File

@@ -30,6 +30,10 @@ public class CmpStep {
//是否成功
private boolean success;
//有exceptionsuccess一定为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)){