Skip to content

Command

Duncan Jones edited this page Feb 19, 2020 · 8 revisions

Command

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.

Events

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 classifier execution that have happened on behalf of that command :-

Projections

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.
Clone this wiki locally