Skip to content

Commit

Permalink
[JBPM-9841] Start process with correlation key rest api should return…
Browse files Browse the repository at this point in the history
… 400 http status if correlation key already exist.
  • Loading branch information
abhijithumbe committed Aug 4, 2021
1 parent 8b1133d commit fba91f8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -327,6 +327,8 @@ public Response startProcessWithCorrelationKeyFromNodeIds(@javax.ws.rs.core.Cont
MessageFormat.format(PROCESS_DEFINITION_NOT_FOUND, processId, containerId), v);
} catch (SecurityException e) {
return forbidden(errorMessage(e, e.getMessage()), v, conversationIdHeader);
} catch (IllegalArgumentException e) {
return badRequest(errorMessage(e, e.getMessage()), v, conversationIdHeader);
} catch (Exception e) {
logger.error("Unexpected error during processing {}", e.getMessage(), e);
return internalServerError(
Expand Down Expand Up @@ -372,6 +374,8 @@ public Response startProcessWithCorrelation(@javax.ws.rs.core.Context HttpHeader
MessageFormat.format(PROCESS_DEFINITION_NOT_FOUND, processId, containerId), v);
} catch (SecurityException e) {
return forbidden(errorMessage(e, e.getMessage()), v, conversationIdHeader);
} catch (IllegalArgumentException e) {
return badRequest(errorMessage(e, e.getMessage()), v, conversationIdHeader);
} catch (Exception e) {
logger.error("Unexpected error during processing {}", e.getMessage(), e);
return internalServerError(
Expand Down

0 comments on commit fba91f8

Please sign in to comment.