Ids

interface Ids

The ids domain code takes, from a decide function (me.ahoo.wow.api.decide.DecideScope.ids) or a saga's handler (me.ahoo.wow.api.subscribe.SagaContext.ids) instead of a static generator: on a node they are its deployment's generators' (UUIDv7 by default, CosId with wow-cosid), in the test DSL ids that are the same on every run.

Functions

Link copied to clipboard
abstract fun next(): String

A new global id, such as the id of a line, a payment attempt or a correlation key.

abstract fun next(type: AggregateType): String

A new id for an aggregate of type, as admission gives a creating command that names none.