Skip to content

ExecutionResult

ahanusa edited this page Jan 23, 2019 · 3 revisions

ExecutionResult is an actor within the peasy-js framework that serves as the result of command execution. Upon completion of command execution, an instance of ExecutionResult is returned, which contains a success status, an errors list (optionally), 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.