public ResponseEntity processRequests()

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


  public ResponseEntity<String> processRequests(@RequestBody String request) {
    try {
      SagaResponse response = sagaExecutionComponent.run(request);
      if (response.succeeded()) {
        return ResponseEntity.ok("success");
      } else {
        throw new InvocationException(INTERNAL_SERVER_ERROR, response.body());
      }
    } catch (SagaException se) {
      throw new InvocationException(BAD_REQUEST, se);
    }
  }