Skip to content

Commit

Permalink
feat: Update getDownloadLink method to log processInstanceId and retu…
Browse files Browse the repository at this point in the history
…rn a simple response
  • Loading branch information
MarcWeberFS committed Nov 11, 2024
1 parent 4f81ce5 commit f883c9e
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public ResponseEntity<Map<String, String>> startDownloadProcess(@RequestParam("u
return ResponseEntity.ok(response);
}

@Autowired
private HistoryService historyService;

@GetMapping("/download-link")
public ResponseEntity<Map<String, String>> getDownloadLink(@RequestParam("processInstanceId") String processInstanceId) {

return ResponseEntity.ok(Collections.singletonMap("downloadLink", "downloadLink"));
public ResponseEntity<String> getDownloadLink(@RequestParam("processInstanceId") String processInstanceId) {
// Log the process instance ID to confirm it's being passed correctly
System.out.println("Received processInstanceId: " + processInstanceId);

// Return a simple string response for testing
return ResponseEntity.ok("ProcessInstanceId received: " + processInstanceId);
}



}

0 comments on commit f883c9e

Please sign in to comment.