on Invalid Entity
public final void onInvalidEntity(MessageId lastMessage, MessageId root, ValidationError error, Version version)
Posts the ConstraintViolated system event.
Parameters
last Message
the last message handled by the entity
root
the root message of the message chain which led to the violation
error
the description of violation
version
the version of the invalid entity