public ResponseEntity queryExecutions()

in saga-spring/src/main/java/org/apache/servicecomb/saga/spring/SagaController.java [118:132]


  public ResponseEntity<SagaExecutionQueryResult> queryExecutions(
      @RequestParam(name = "pageIndex") String pageIndex,
      @RequestParam(name = "pageSize") String pageSize,
      @RequestParam(name = "startTime") String startTime,
      @RequestParam(name = "endTime") String endTime) {
    if (isRequestParamValid(pageIndex, pageSize, startTime, endTime)) {
      try {
        return ResponseEntity.ok(queryService.querySagaExecution(pageIndex, pageSize, startTime, endTime));
      } catch (ParseException ignored) {
        throw new InvocationException(BAD_REQUEST, "illegal request content");
      }
    } else {
      throw new InvocationException(BAD_REQUEST, "illegal request content");
    }
  }