Clarified string conversion.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -408,7 +408,7 @@ public class AmqpMessageHandlerService extends BaseAmqpService {
|
|||||||
|
|
||||||
if (ArrayUtils.isNotEmpty(message.getMessageProperties().getCorrelationId())) {
|
if (ArrayUtils.isNotEmpty(message.getMessageProperties().getCorrelationId())) {
|
||||||
actionStatus.addMessage(RepositoryConstants.SERVER_MESSAGE_PREFIX + "DMF message correlation-id "
|
actionStatus.addMessage(RepositoryConstants.SERVER_MESSAGE_PREFIX + "DMF message correlation-id "
|
||||||
+ new String(message.getMessageProperties().getCorrelationId()));
|
+ convertCorrelationId(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
actionStatus.setAction(action);
|
actionStatus.setAction(action);
|
||||||
@@ -416,6 +416,10 @@ public class AmqpMessageHandlerService extends BaseAmqpService {
|
|||||||
return actionStatus;
|
return actionStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String convertCorrelationId(final Message message) {
|
||||||
|
return new String(message.getMessageProperties().getCorrelationId());
|
||||||
|
}
|
||||||
|
|
||||||
private Action getUpdateActionStatus(final ActionStatus actionStatus) {
|
private Action getUpdateActionStatus(final ActionStatus actionStatus) {
|
||||||
if (actionStatus.getStatus().equals(Status.CANCELED)) {
|
if (actionStatus.getStatus().equals(Status.CANCELED)) {
|
||||||
return controllerManagement.addCancelActionStatus(actionStatus);
|
return controllerManagement.addCancelActionStatus(actionStatus);
|
||||||
|
|||||||
Reference in New Issue
Block a user