Repository navigation
Release v23.1.0
Command operations can now call the abilities of a Screenplay system. Arc runs them inside the command request before commit, compensates them when the command does not commit, and the Screenplay generator reads such operations back into a model.
Added
ISystemAbilities,SystemAbilitiesandIAbilityInvoker: a system becomes an injectable, substitutable collaborator whose methods are its abilities, and each call is handed to the extension host with the command's causation (command, correlation, operation, phase) and an idempotency key that is stable for the call and differs betweenExecuteandCompensate. A failed ability throwsAbilityInvocationFailed, which fails the command and triggers compensation as for any other operation. (part of #3792)- The Screenplay generator reads an operation whose
ExecuteandCompensateonly call abilities intoinvokes <System>.<Ability>phases, declares each invoked system with its abilities, and supports operations that invoke more than one system. A phase that does anything else stays in code and reports why. (part of #3792) - Documentation: Invoke Screenplay abilities from command operations, linked with the Screenplay operations and Stage ability invocations pages. (part of #3792)
Changed
- The Screenplay generator now depends on
Cratis.Screenplay6.23.0 (was 6.0.0). Generated models containing operations still bind toPLAY0268until Screenplay admits operations (Cratis/Screenplay#301) and ability invocations from operations (Cratis/Screenplay#1252); the generator accepts those messages as known admission limits.