use of com.webank.wedatasphere.qualitis.response.ApplicationTaskResponse in project Qualitis by WeBankFinTech.
the class OuterExecutionServiceImpl method getApplicationStatus.
@Override
public GeneralResponse<?> getApplicationStatus(String applicationId) throws UnExpectedRequestException {
// Find application by applicationId
Application application = applicationDao.findById(applicationId);
if (application == null) {
throw new UnExpectedRequestException("Application_id {&DOES_NOT_EXIST}");
}
LOGGER.info("Succeed to find application. application: {}", application);
List<Task> tasks = taskDao.findByApplication(application);
ApplicationTaskResponse response = new ApplicationTaskResponse(application, tasks);
LOGGER.info("Succeed to get application status. response: {}", response);
return new GeneralResponse<>("200", "{&SUCCEED_TO_GET_APPLICATION_STATUS}", response);
}
use of com.webank.wedatasphere.qualitis.response.ApplicationTaskResponse in project Qualitis by WeBankFinTech.
the class OuterExecutionServiceImpl method getApplicationDynamicStatus.
@Override
public GeneralResponse<?> getApplicationDynamicStatus(String applicationId) throws UnExpectedRequestException {
// Find application by applicationId
Application application = applicationDao.findById(applicationId);
if (application == null) {
throw new UnExpectedRequestException("Application_id {&DOES_NOT_EXIST}");
}
LOGGER.info("Succeed to find application. application: {}", application);
return new GeneralResponse<>("200", "{&SUCCEED_TO_GET_APPLICATION_STATUS}", new ApplicationTaskResponse(application));
}
Aggregations