Skip to content

Release v23.1.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 06:33
42eb6a6

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, SystemAbilities and IAbilityInvoker: 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 between Execute and Compensate. A failed ability throws AbilityInvocationFailed, which fails the command and triggers compensation as for any other operation. (part of #3792)
  • The Screenplay generator reads an operation whose Execute and Compensate only call abilities into invokes <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.Screenplay 6.23.0 (was 6.0.0). Generated models containing operations still bind to PLAY0268 until Screenplay admits operations (Cratis/Screenplay#301) and ability invocations from operations (Cratis/Screenplay#1252); the generator accepts those messages as known admission limits.