Access entity current state in the service implementation

In the implementation of a service, I would like to access the current state of my entity before running the command. Is it possible ?

To be more explicit with what I’m doing:

I have a “RenameCustomer” command. I would like to call another micro-service managing customer name aliases and create a customer name alias with the current name of the customer (before renaming).
That’s why I need the current name of the customer in the service implementation.

@domschoen,
You have two options:

  1. using write side (Get Command to you entity that will get the name from the entity state)
  2. using read side (query read side projection of your entity events)