-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(concept): #521 create first draft
- Loading branch information
Christian Rehm
committed
Jan 24, 2024
1 parent
90c4b56
commit d8cdbb1
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...oncept/#521-revoked-notification-handling/#521-revoked-notification-handling.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# \[Concept\] \[#521\] Revoked notification handling | ||
|
||
| Key | Value | | ||
|---------------|-----------------------------------------------------------------------| | ||
| Autor | ds-crehm | | ||
| Creation date | 24.01.2024 | | ||
| Ticket Id | #521 https://github.com/eclipse-tractusx/traceability-foss/issues/521 | | ||
| State | WIP | | ||
|
||
# Table of Contents | ||
1. [Description](#description) | ||
2. [Requirements](#requirements) | ||
3. [Non-functional requirements](#non-functional-requirements) | ||
4. [Out of scope](#out-of-scope) | ||
|
||
# Description | ||
|
||
After a notification is sent, the policy must first be checked for the asset and the relevant BPNs. | ||
If the policies are invalid or expired, the notification must be rejected and the user notified of the rejection. | ||
|
||
# Requirements | ||
|
||
- The relevant policies must be fetched from the EDC | ||
- The policies must be validated | ||
- Is the policy active? | ||
- Is the connection to the requested BPN allowed? | ||
- Is the requested notification to this BPN allowed? | ||
- If the policy is not valid, the notification must be rejected | ||
- Status set to "REJECTED" | ||
- Status information stored in the notification (detailed description why it failed) | ||
- Pop-up informing the user ("The notification was rejected. Reason: XXX") | ||
- (optional) Clicking on the pop-up sends you to the detail view of the notification | ||
- Detailed information about the reason for the rejection must be shown in the detail view of the notification | ||
- (optional) Detailed information about the relevant policy for that notification must be shown in the detail view of the notification. Policy implementation is in progress and must be considered -> A link to the policy implementation is another possibility | ||
- The user must be able to review the notification (and the policy -> policy implementation) and resend it | ||
|
||
# Non-functional requirements | ||
|
||
- The time it takes for a notification to be rejected is reasonable. If it takes too long, it will be canceled and the user will be notified. | ||
|
||
# Out of scope | ||
|
||
- Policies are part of the EDC |