SystemCommands

The framework's system commands as a Manifest lists them, with their routes (CommandRoutes): each named by its full system name, its body the schema of Manifest.defs keyed by that name.

  • an aggregate's lifecycle commands (lifecycle), those its model handles;

  • an aggregate's snapshot rebuild (rebuild), when it keeps snapshots;

  • a context's schedule job commands (jobs), when a subscription of it runs a job.

Properties

Link copied to clipboard

The lifecycle command routed as DELETE of the aggregate (CommandRoutes.deleteRoute).

Link copied to clipboard

The commands of a context's schedule jobs, each to the job its route's id names.

Link copied to clipboard

The prefix of the lifecycle commands' names.

Link copied to clipboard
const val REBUILD: String

The rebuild of an aggregate type's snapshots, the ids in its body.

Functions

Link copied to clipboard

The schedule job commands of context: POST /{context}/wow.schedule/{id}/enable, ...

Link copied to clipboard
fun lifecycle(context: String, aggregate: String, name: String, owned: Boolean = false): CommandManifest

The lifecycle command name (wow.lifecycle.RestoreAggregate) of aggregate in context; of an aggregate whose id is its owner's (owned), also by no id, the caller's own.

Link copied to clipboard
fun rebuild(context: String, aggregate: String): CommandManifest

The snapshot rebuild of aggregate in context: POST /{context}/{aggregate}/wow.snapshot.rebuild.