FINERACT-1724: Fixed storing the aggregate root ID for external events
This commit is contained in:
committed by
Adam Saghy
parent
94105f26e6
commit
6bdd6b1ace
+1
-1
@@ -135,7 +135,7 @@ public class SendAsynchronousEventsTasklet implements Tasklet {
|
|||||||
ByteBuffer toByteBuffer = message.toByteBuffer();
|
ByteBuffer toByteBuffer = message.toByteBuffer();
|
||||||
byte[] convert = byteBufferConverter.convert(toByteBuffer);
|
byte[] convert = byteBufferConverter.convert(toByteBuffer);
|
||||||
messages.add(convert);
|
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());
|
message.getIdempotencyKey());
|
||||||
}
|
}
|
||||||
return messages;
|
return messages;
|
||||||
|
|||||||
+1
@@ -79,6 +79,7 @@ public class ExternalEvent extends AbstractPersistableCustom {
|
|||||||
this.schema = schema;
|
this.schema = schema;
|
||||||
this.data = data;
|
this.data = data;
|
||||||
this.idempotencyKey = idempotencyKey;
|
this.idempotencyKey = idempotencyKey;
|
||||||
|
this.aggregateRootId = aggregateRootId;
|
||||||
this.createdAt = DateUtils.getOffsetDateTimeOfTenantWithMilliseconds();
|
this.createdAt = DateUtils.getOffsetDateTimeOfTenantWithMilliseconds();
|
||||||
this.status = ExternalEventStatus.TO_BE_SENT;
|
this.status = ExternalEventStatus.TO_BE_SENT;
|
||||||
this.businessDate = DateUtils.getBusinessLocalDate();
|
this.businessDate = DateUtils.getBusinessLocalDate();
|
||||||
|
|||||||
Reference in New Issue
Block a user