-
Notifications
You must be signed in to change notification settings - Fork 70
ExecutionResult
ExecutionResult is an actor within the peasy framework that serves as the result of command execution. When a service command is executed via Command.Execute or Command.ExecuteAsync, initialization logic, validation and business rule validations, and command logic (data proxy invocations, workflow logic, etc.) are subjected to the command execution pipeline.
Upon completion of command execution, an instance of ExecutionResult is returned, which contains a success status, an errors list, and object state (optionally). Based on the successful validation of rules, the success status of execution result will be true, potentially containing object state from the result of the command operation. When the validation of rules fail, the success status of execution result will be false, and the errors list will be populated.