FINERACT-1724: Fixed storing the aggregate root ID for external events

This commit is contained in:
Arnold Galovics
2023-04-03 18:13:45 +02:00
committed by Adam Saghy
parent 94105f26e6
commit 6bdd6b1ace
2 changed files with 2 additions and 1 deletions
@@ -135,7 +135,7 @@ public class SendAsynchronousEventsTasklet implements Tasklet {
ByteBuffer toByteBuffer = message.toByteBuffer();
byte[] convert = byteBufferConverter.convert(toByteBuffer);
messages.add(convert);
log.debug("Created message to send with id: [{}], type: [{}], idempotency key: [{}]", message.getId(), message.getType(),
log.trace("Created message to send with id: [{}], type: [{}], idempotency key: [{}]", message.getId(), message.getType(),
message.getIdempotencyKey());
}
return messages;
@@ -79,6 +79,7 @@ public class ExternalEvent extends AbstractPersistableCustom {
this.schema = schema;
this.data = data;
this.idempotencyKey = idempotencyKey;
this.aggregateRootId = aggregateRootId;
this.createdAt = DateUtils.getOffsetDateTimeOfTenantWithMilliseconds();
this.status = ExternalEventStatus.TO_BE_SENT;
this.businessDate = DateUtils.getBusinessLocalDate();