添加TODO稍后需要检查逻辑
This commit is contained in:
parent
ab924c0e6b
commit
bef7b6e0ba
@ -109,12 +109,13 @@ public abstract class BaseRunContext {
|
||||
end = true;
|
||||
}
|
||||
}
|
||||
if (!end) {
|
||||
throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"状态有误");
|
||||
if (end) {
|
||||
this.changeContextState(ContextStateEnum.getByCode(result));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 查找子类是否全部就绪,如果子类全部完成则父类也就绪
|
||||
* TODO 逻辑可能有点问题
|
||||
* */
|
||||
public void checkChildReady() throws ServiceException{
|
||||
int result = ContextStateEnum.READY.getCode();
|
||||
@ -139,6 +140,7 @@ public abstract class BaseRunContext {
|
||||
}
|
||||
/**
|
||||
* 查找子类是否存在开始运行的,如果有则父状态变成running
|
||||
* TODO 逻辑可能有点问题
|
||||
* */
|
||||
public void checkChildRunning() throws ServiceException{
|
||||
Boolean runningFlag = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user