CB-196 Async execute API fix

This commit is contained in:
Serge Rider
2020-08-05 11:27:07 +03:00
parent acf96f84db
commit 76c4aa2d42
3 changed files with 4 additions and 4 deletions
@@ -341,7 +341,7 @@ extend type Mutation {
asyncTaskCancel(id: String!): Boolean
asyncTaskInfo(id: String!, removeOnFinish: Boolean): AsyncTaskInfo!
asyncTaskInfo(id: String!, removeOnFinish: Boolean!): AsyncTaskInfo!
#### Deprecated API
@@ -113,7 +113,7 @@ public interface DBWServiceCore extends DBWService {
WebAsyncTaskInfo getAsyncTaskStatus(WebSession webSession, String taskId) throws DBWebException;
@WebAction
WebAsyncTaskInfo getAsyncTaskInfo(WebSession webSession, String taskId, boolean removeOnFinish) throws DBWebException;
WebAsyncTaskInfo getAsyncTaskInfo(WebSession webSession, String taskId, Boolean removeOnFinish) throws DBWebException;
@WebAction
boolean cancelAsyncTask(WebSession webSession, String taskId) throws DBWebException;
@@ -318,8 +318,8 @@ public class WebServiceCore implements DBWServiceCore {
}
@Override
public WebAsyncTaskInfo getAsyncTaskInfo(WebSession webSession, String taskId, boolean removeOnFinish) throws DBWebException {
return webSession.asyncTaskStatus(taskId, removeOnFinish);
public WebAsyncTaskInfo getAsyncTaskInfo(WebSession webSession, String taskId, Boolean removeOnFinish) throws DBWebException {
return webSession.asyncTaskStatus(taskId, CommonUtils.toBoolean(removeOnFinish));
}
@Override