-
Notifications
You must be signed in to change notification settings - Fork 20
Command
Duncan Jones edited this page Feb 19, 2020
·
8 revisions
The Command class is part of the CQRS Support in this event sourcing library. It allows for the creation of a special event stream backed entity which represents a command which is then used to track the progress of that command.
The events in the execution history of a command are:-
- Created - This occurs when a new command is started
- Parameter Value Set - A parameter that will be used in the execution of the command has been set or changed.
- Fatal error occurred - An error has happened that prevents the command completing.
- Command Step Initiated - A particular named step in processing the command has initiated.
- Command Step Completed - A named step in the command orchestration has completed.
- Completed - The command orchestration is complete.
In addition the command can have the following events relating to projection and classification execution that have happened on behalf of that command :-
The built-in projections that can run over a command's event stream are:-
- Parameter Values - Returns the set of parameters set for this command execution (as name-value pairs)
- Execution State - Returns the current execution state of the command.