I know the subject line doesn’t make sense given the way Axon works, but here is my problem:
I need to create a new instance of aggregate, “Quote”, that is tied to a backend system of record. That is, the aggregate ID must eventually match the ID assigned in the backend system. So, my uiServer app is calling commandGateway and sending it a CreateQuoteCmd, but I don’t know what to pass as the target aggregate ID since the ID will come from a backend system called by the command handler. The uiServer cannot assign the quoteId. The command handler for CreateQuoteCmd contacts our backend system to get the new quoteId, but then how do I make that quoteId the ID for the aggregate?
How to do this?
Thanks for your help.