mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
enhancement: #I1W8OW 提一个需求点:一个组件出错能记录一些重要信息
This commit is contained in:
@@ -36,6 +36,10 @@ public abstract class AbsSlot implements Slot{
|
||||
|
||||
private final String REQUEST_ID = "req_id";
|
||||
|
||||
private boolean isSuccess = true;
|
||||
|
||||
private String errorMsg;
|
||||
|
||||
private Deque<CmpStep> executeSteps = new ArrayDeque<CmpStep>();
|
||||
|
||||
protected ConcurrentHashMap<String, Object> dataMap = new ConcurrentHashMap<String, Object>();
|
||||
@@ -134,4 +138,20 @@ public abstract class AbsSlot implements Slot{
|
||||
public Deque<CmpStep> getExecuteSteps() {
|
||||
return executeSteps;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
isSuccess = success;
|
||||
}
|
||||
|
||||
public String getErrorMsg() {
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public void setErrorMsg(String errorMsg) {
|
||||
this.errorMsg = errorMsg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user