Class DmnUploadController

java.lang.Object
pro.taskana.routing.dmn.rest.DmnUploadController

@RestController public class DmnUploadController extends Object
Controller for all DMN upload related endpoints.
  • Constructor Details

    • DmnUploadController

      @Autowired public DmnUploadController(DmnConverterService dmnConverterService)
  • Method Details

    • convertAndUpload

      @PutMapping("/api/v1/routing-rules/default") public org.springframework.http.ResponseEntity<RoutingUploadResultRepresentationModel> convertAndUpload(@RequestParam("excelRoutingFile") org.springframework.web.multipart.MultipartFile excelRoutingFile) throws IOException, pro.taskana.common.api.exceptions.NotAuthorizedException
      This endpoint converts an excel file to a DMN table and saves it on the filesystem.
      Parameters:
      excelRoutingFile - the excel file containing the routing rules
      Returns:
      the result of the upload
      Throws:
      pro.taskana.common.api.exceptions.NotAuthorizedException - if the current user is not authorized to upload/convert an excel file
      IOException - if there is an I/O problem with the provided excel file
    • getIsRoutingRestEnabled

      @GetMapping(path="/api/v1/routing-rules/routing-rest-enabled") public org.springframework.http.ResponseEntity<Boolean> getIsRoutingRestEnabled()
      This endpoint checks if the taskana-routing-rest is in use.
      Returns:
      true, when the taskana-routing-rest is enabled, otherwise false