BodyAggregateIds

The id of the aggregate a command acts on, read from its JSON body by the property a contract names (idProperty, the command class's @AggregateId): what a sender that has no class of the command reads, or one that reads it as its contract describes it.

Functions

Link copied to clipboard
fun of(body: JsonNode, property: String): String?

The id body holds in property: null when it leaves it out or holds null there; an IllegalArgumentException when it holds anything but a string.