use of io.spine.core.Rejection in project core-java by SpineEventEngine.
the class RejectionBusAdapter method toExternalEnvelope.
@Override
ExternalMessageEnvelope toExternalEnvelope(ExternalMessage message) {
final Any packedRejection = message.getOriginalMessage();
final Rejection rejection = AnyPacker.unpack(packedRejection);
final ExternalMessageEnvelope result = ExternalMessageEnvelope.of(message, Rejections.getMessage(rejection));
return result;
}
Aggregations