Class BPMNUpDownloadController
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.support.BPMNUpDownloadController
-
@Controller @RequestMapping("/api") public class BPMNUpDownloadController extends Object
-
-
Constructor Summary
Constructors Constructor Description BPMNUpDownloadController(BPMNUtil bpmnUtil, CSRRepository csrRepository, CAConnectorConfigRepository caConnectorConfigRepository, AuditService auditService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>getBPMN(String processId)retrieve bpmn XML content for a given process idorg.springframework.http.ResponseEntity<BPMNProcessInfo>postBPMN(@Valid BPMNUpload bpmnUpload)org.springframework.http.ResponseEntity<Map<String,String>>postBPMNForCSR(String processId, String csrId)check results a given process id when processing a given CSR
-
-
-
Constructor Detail
-
BPMNUpDownloadController
public BPMNUpDownloadController(BPMNUtil bpmnUtil, CSRRepository csrRepository, CAConnectorConfigRepository caConnectorConfigRepository, AuditService auditService)
-
-
Method Detail
-
getBPMN
@RequestMapping(value="/bpmn/{processId}", method=GET, produces="application/xml") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getBPMN(@PathVariable String processId) throws de.trustable.ca3s.core.web.rest.support.NotFoundExceptionretrieve bpmn XML content for a given process id- Parameters:
processId- the internal process id- Returns:
- the process's XML
- Throws:
de.trustable.ca3s.core.web.rest.support.NotFoundException
-
postBPMN
@PostMapping("/bpmn") @Transactional public org.springframework.http.ResponseEntity<BPMNProcessInfo> postBPMN(@Valid @RequestBody @Valid BPMNUpload bpmnUpload)
-
postBPMNForCSR
@RequestMapping(value="/bpmn/check/csr/{processId}/{csrId}", method=POST) public org.springframework.http.ResponseEntity<Map<String,String>> postBPMNForCSR(@PathVariable String processId, @PathVariable String csrId)check results a given process id when processing a given CSR- Parameters:
processId- the internal process id- Returns:
- the process's response
-
-