perform

public DispatchOutcome perform()

Performs the operation.

First, the command is passed to the entity.

Then, depending on the command handling result, either EntityLifecycle.onCommandHandled(...) or EntityLifecycle.onCommandRejected(...) callback is triggered.

Return

the produced events including the rejections thrown by the command handler