CommandValidator

fun interface CommandValidator

Validates a command that is decoded and transformed and not yet decided (CommandCandidate): the violations it finds, none when it is valid. Any violation refuses the command with FrameworkCodes.COMMAND_INVALID, listing them all. The gateway asks it of an admitted command, and so of a command from a peer, a saga's derived command, a command taken from a topic and a timer's.

Functions

Link copied to clipboard
abstract fun validate(command: CommandCandidate): List<Violation>