Open
Description
Feature Request
Add a list of termination reasons to TransferTerminationMessage
and ContractNegotiationTerminationMessage
.
- new value in
TransferTerminationMessage
- replace
String rejectionReason
inContractNegotiationTerminationMessage
Which Areas Would Be Affected?
spi, protocol services
Why Is the Feature Desired?
According to the spec, both messages support an optional list of termination reasons. Those are of type object
. The spec doesn't define the schema.
Solution Proposal
Introduce a class that can be extended if needed (e.g., predefined enums like in StoreFailure
):
public class ProtocolServiceFailure extends Failure {
private final String reason;
...
}
Add mapping in dsp transformers.