Skip to content

dataspace protocol: introduce reasons for termination messages #2729

Open
@juliapampus

Description

@juliapampus

Feature Request

Add a list of termination reasons to TransferTerminationMessage and ContractNegotiationTerminationMessage.

  • new value in TransferTerminationMessage
  • replace String rejectionReason in ContractNegotiationTerminationMessage

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions