Optional $correlationUUID related to a single "transaction" within the system, passed from commands to events to commands etc...
Readonly $dataTransaction to rollback
Stream to rollback
Optional $metadataObject containing metadata about the initiating request
Readonly $nameEvent name. Defaults to the name of the constructor
Readonly Internal $typeDifferentiating between Commands, Events, and Queries
Readonly $uuidUUID to individually identify an event
Readonly $versionEvent revision version
Getter for streamId if it exits in the command
Generated using TypeDoc
For each aggregate, a rollback command should be defined. This allows this saga manager to rollback aggregates by streamId and correlationId and in doing so, undo a transaction that failed elsewhere in the system.
It is required to pass the streamId and correlationId as the only parameters in the class constructor.