eclipse-tractusx / traceability-foss

https://eclipse-tractusx.github.io/traceability-foss/docs/
Apache License 2.0
10 stars 19 forks source link

[Concept] Enhancing Transparency and Management of EDC Contract Agreements and Policies #1108

Open ds-mwesener opened 4 days ago

ds-mwesener commented 4 days ago

As a system administrator, I want a mechanism to log all contract agreement IDs associated with EDC assets and policies, so that there is clear transparency and historical tracking of changes and updates.

Blocks: https://github.com/eclipse-tractusx/traceability-foss/issues/1064

Hints / Details

Process

  1. Call the registry API including a filter to get the relevant asset by globalAssetId. (Ask Jaro for specific details.) 1a. Ensure access to the registry element ID is maintained as it will be needed along with the globalAssetId.
  2. Extract the EDC asset ID from the subprotocol body. 2a. Ensure access to this information is maintained along with registryId and globalAssetId for future updates.
  3. Filter and retrieve contract definitions using the EDC asset ID to check if the current policy matches the existing one. If the policy remains the same, no new contract is required. If not, proceed to create new EDC asset, EDC policy, and EDC contract definition as needed.
  4. Create new EDC contract definitions as described in step 3 if necessary.
  5. Utilize the registryId associated with the globalAssetId for updates.
  6. Update the registry subprotocol body with the new EDC asset ID to reflect changes.

Acceptance Criteria

Out of Scope