forked from eclipse-tractusx/traceability-foss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/#630-extended-part-detail-view
- Loading branch information
Showing
54 changed files
with
1,856 additions
and
1,612 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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,45 @@ | ||
= Policies | ||
|
||
== Overview | ||
=== Scenario 1: Start Up interaction with IRS Policy Store | ||
Trace-X instance define a constraint which is required for data consumption and provisioning. | ||
Trace-X retrieves all policies by IRS and validates if one of the policies contains the required constraint given by Trace-X. | ||
If a policy with the constraint exists and is valid process ends. If the policy is not valid it will create one with the given constraint. | ||
|
||
This sequence diagram describes the process of retrieving or creating policies within the IRS Policy Store based on Trace-X given constraint. | ||
|
||
[plantuml, target=policy-startup-configuration, format=svg] | ||
.... | ||
include::../../../uml-diagrams/arc42/runtime-view/policies/policy-startup-configuration.puml[] | ||
.... | ||
|
||
=== Scenario 2: Start Up interaction with EDC | ||
Trace-X instance uses the policy which includes the defined constraint and transforms it into a valid EDC Policy Request. | ||
The EDC Policy Request will be used for creating a policy for the required notification contracts. | ||
|
||
This sequence diagram describes the process of retrieving the correct policy by IRS Policy Store based on Trace-X given constraint and reuses it for creating an EDC Policy. | ||
|
||
[plantuml, target=policy-startup-notification-contract, format=svg] | ||
.... | ||
include::../../../uml-diagrams/arc42/runtime-view/policies/policy-startup-notification-contract.puml[] | ||
.... | ||
|
||
=== Scenario 3: Provisioning of notifications | ||
Trace-X instance uses the policy which includes the defined constraint and reuses it for validation of catalog offers by the receiver edc. | ||
|
||
This sequence diagram describes the process of how the policy with the defined constraint will be used for validation of catalog offers by the receiver edc, to validate if sending is valid. | ||
|
||
[plantuml, target=policy-notifications, format=svg] | ||
.... | ||
include::../../../uml-diagrams/arc42/runtime-view/policies/policy-notifications.puml[] | ||
.... | ||
|
||
=== Scenario 4: Provisioning of assets | ||
Trace-X instance uses the policy which includes the defined constraint and reuses it for creating edc assets . | ||
|
||
This sequence diagram describes the process of how the policy with the defined constraint will be reused for registering edc data assets. | ||
|
||
[plantuml, target=policy-assets, format=svg] | ||
.... | ||
include::../../../uml-diagrams/arc42/runtime-view/policies/policy-assets.puml[] | ||
.... |
18 changes: 18 additions & 0 deletions
18
docs/src/uml-diagrams/arc42/runtime-view/policies/policy-assets.puml
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,18 @@ | ||
@startuml | ||
skinparam monochrome true | ||
skinparam shadowing false | ||
skinparam defaultFontName "Architects daughter" | ||
|
||
title Sequence Diagram: Policy Handling on asset provisioning flow | ||
participant "TraceX" as TraceX | ||
participant "EDC Consumer" as EdcConsumer | ||
participant "EDC Provider (other) " as EdcProvider | ||
|
||
TraceX -> TraceX: Publish Asset to Core Services | ||
TraceX -> EdcConsumer: Register policy | ||
EdcConsumer -> EdcProvider: Register policy | ||
EdcProvider -> EdcConsumer: Return ok | ||
EdcConsumer -> TraceX: Return ok | ||
TraceX -> TraceX: Reuse policy for contract definition creation | ||
|
||
@enduml |
49 changes: 49 additions & 0 deletions
49
docs/src/uml-diagrams/arc42/runtime-view/policies/policy-notifications.puml
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,49 @@ | ||
@startuml | ||
skinparam monochrome true | ||
skinparam shadowing false | ||
skinparam defaultFontName "Architects daughter" | ||
|
||
title Sequence Diagram: Policy Handling on notification flow | ||
participant "TraceX" as TraceX | ||
participant "IRS " as IRS | ||
participant "EDC Consumer" as EdcConsumer | ||
participant "EDC Provider (other) " as EdcProvider | ||
|
||
TraceX -> TraceX: Approve, Acknowledge, Accept, Decline or Close Notification | ||
TraceX -> EdcConsumer: Get catalog of receiver | ||
EdcConsumer -> EdcProvider: Get catalog of receiver | ||
EdcProvider -> EdcConsumer: Return catalog | ||
EdcConsumer -> TraceX: Return catalog | ||
TraceX -> TraceX: Validate Contract Type, Method and Policy | ||
|
||
alt Notification Type: Alert | ||
TraceX -> TraceX: Filter for method (update, receive) | ||
TraceX -> TraceX: Validate if catalog policy matches the configured policies in IRS Lib (3 Default Policies) | ||
alt Method: Update | ||
TraceX -> EdcConsumer: Send out alert notification (update method) | ||
EdcConsumer -> EdcProvider: Send out alert notification (update method) | ||
EdcProvider -> EdcConsumer: ok | ||
EdcConsumer -> TraceX: .. | ||
else Method: Receive | ||
TraceX -> EdcConsumer: Send out alert notification (receive method) | ||
EdcConsumer -> EdcProvider: Send out alert notification (receive method) | ||
EdcProvider -> EdcConsumer: ok | ||
EdcConsumer -> TraceX: .. | ||
end | ||
else Notification Type: Investigation | ||
TraceX -> TraceX: Filter for method (update, receive) | ||
TraceX -> TraceX: Validate if catalog policy matches the configured policies in IRS Lib (3 Default Policies) | ||
alt Method: Update | ||
TraceX -> EdcConsumer: Send out Investigation notification (update method) | ||
EdcConsumer -> EdcProvider: Send out Investigation notification (update method) | ||
EdcProvider -> EdcConsumer: ok | ||
EdcConsumer -> TraceX: .. | ||
else Method: Receive | ||
TraceX -> EdcConsumer: Send out Investigation notification (receive method) | ||
EdcConsumer -> EdcProvider: Send out Investigation notification (receive method) | ||
EdcProvider -> EdcConsumer: ok | ||
EdcConsumer -> TraceX: .. | ||
end | ||
end | ||
|
||
@enduml |
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
44 changes: 44 additions & 0 deletions
44
docs/src/uml-diagrams/arc42/runtime-view/policies/policy-startup-notification-contract.puml
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,44 @@ | ||
@startuml | ||
skinparam monochrome true | ||
skinparam shadowing false | ||
skinparam defaultFontName "Architects daughter" | ||
|
||
title Sequence Diagram: TraceX Interaction with EDC on startup | ||
participant "TraceX" as TraceX | ||
participant "IRS" as IRS | ||
participant "EDC " as EDC | ||
|
||
TraceX -> IRS: Get Policies | ||
IRS -> TraceX : return Policies | ||
TraceX -> TraceX: Find any policy which matches own constraint | ||
|
||
alt Policy found | ||
TraceX -> TraceX: Use found policy for EdcPolicy creation. | ||
TraceX -> EDC : Create notification asset, policy, definition | ||
else Policy not found | ||
TraceX -> TraceX: Corrupt state of application | ||
end | ||
|
||
@enduml | ||
|
||
@startuml | ||
skinparam monochrome true | ||
skinparam shadowing false | ||
skinparam defaultFontName "Architects daughter" | ||
|
||
title Sequence Diagram: Sending notifications | ||
participant "TraceX" as TraceX | ||
participant "TraceXIRSLib" as TraceXIRSLib | ||
participant "IRS " as IRS | ||
participant "EDC " as EDC | ||
|
||
TraceX -> TraceX: ... | ||
TraceX -> EDC: Get catalog | ||
EDC -> TraceX: -> Return catalog | ||
TraceX -> TraceX: Filter for notification type (alert / investigation) / method(update, receive) | ||
TraceX -> TraceXIRSLib: Validate if catalog policy matches the configured policies in IRS Lib (3 Default Policies) | ||
TraceXIRSLib -> TraceX: Valid | ||
TraceX -> EDC: Send out notification | ||
@enduml | ||
|
||
|
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
Oops, something went wrong.