Cancel contract negotiation within the process #823
-
We know that an EDC extension can hook into events, e.g. shown via the old Clearing House or old Broker extension. Is it possible to hook into the contract negotiation process and can the process be stopped via a hook, e.g. when some conditions are not met? Thus, going into |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
More info: |
Beta Was this translation helpful? Give feedback.
-
Maybe this API helps you with your use-case: |
Beta Was this translation helpful? Give feedback.
-
Quick PoC With the guard, the negotiation process stops at the REQUESTED state: DSP: Incoming catalog request. And the process waits there. |
Beta Was this translation helpful? Give feedback.
Quick PoC
https://github.com/sovity/edc-extensions/tree/823-cancel-contract-negotiation-within-the-process
With the guard, the negotiation process stops at the REQUESTED state:
DSP: Incoming catalog request.
[CONSUMER] ContractNegotiation CONTRACT1 is now in state INITIAL.
[CONSUMER] ContractNegotiation CONTRACT1 is now in state REQUESTING.
ContractNegotiation: ID CONTRACT. [Consumer] Send ContractRequestMessage message
DSP: Incoming ContractRequestMessage for contract negotiation process
[Provider] Contract offer received.
[PROVIDER] ContractNegotiation CONTRACT2 is now in state REQUESTED.
ContractNegotiation: ID CONTRACT. [Consumer] Send ContractRequestMessage message
[CONSUMER] Contrac…