Package pro.taskana.routing.dmn.rest
Class DmnUploadController
java.lang.Object
pro.taskana.routing.dmn.rest.DmnUploadController
Controller for all DMN upload related endpoints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<RoutingUploadResultRepresentationModel>convertAndUpload(org.springframework.web.multipart.MultipartFile excelRoutingFile) This endpoint converts an excel file to a DMN table and saves it on the filesystem.org.springframework.http.ResponseEntity<Boolean>This endpoint checks if the taskana-routing-rest is in use.
-
Constructor Details
-
DmnUploadController
-
-
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 fileIOException- 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
-