| ... | ... | @@ -192,8 +192,10 @@ Below you find a sketch of the basic process of the the invocation of a plugin a |
|
|
|
actor "User Browser"
|
|
|
|
|
|
|
|
== Initialization (and regular heart beat monitoring) ==
|
|
|
|
"Sharing Plattform" -> Connector : REST config URL
|
|
|
|
activate Connector
|
|
|
|
"Sharing Plattform" -> Connector : REST config URL (e.g. http://localhost:8080/api/sharing/config)
|
|
|
|
Connector --> "Sharing Plattform" : SharingPluginConfig
|
|
|
|
deactivate Connector
|
|
|
|
|
|
|
|
== Shopping Session ==
|
|
|
|
|
| ... | ... | @@ -201,19 +203,19 @@ Connector --> "Sharing Plattform" : SharingPluginConfig |
|
|
|
|
|
|
|
"User Browser"-> "Sharing Plattform" : fill shopping basket
|
|
|
|
|
|
|
|
"User Browser"-> "Sharing Plattform" : trigger Action
|
|
|
|
"User Browser"-> "Sharing Plattform" : trigger Connector Action
|
|
|
|
|
|
|
|
"Sharing Plattform" --> "User Browser": redirect to action.actionTransferURL + "/<basketToken>?" + "apiBaseURL="<apiBaseURL> + "&returnURL=..."
|
|
|
|
"Sharing Plattform" --> "User Browser": redirect to ""action.actionTransferURL"" + "/<basketToken>?" + "apiBaseURL="<apiBaseURL> + "&returnURL=..."
|
|
|
|
|
|
|
|
"User Browser"-> Connector : action.actionTransferURL + "/<basketToken>?" + ...
|
|
|
|
activate Connector
|
|
|
|
Connector -> "Sharing Plattform": REST <apiBaseURL>/basket/<basketToken>
|
|
|
|
"Sharing Plattform" --> Connector: ShoppingBasket
|
|
|
|
"Sharing Plattform" --> Connector:""ShoppingBasketInfoDTO""
|
|
|
|
|
|
|
|
Connector -> Connector: evaluate Basket, do Work
|
|
|
|
activate Connector #DarkSalmon
|
|
|
|
Connector -> "Sharing Plattform": REST <apiBaseURL>/basket/<basketToken>/repository/<exerciseId>
|
|
|
|
"Sharing Plattform" --> Connector: Zipped repository (master, latest commit)
|
|
|
|
Connector -> "Sharing Plattform": REST ""GET <apiBaseURL>/basket/<basketToken>/repository/<exerciseId>""
|
|
|
|
"Sharing Plattform" --> Connector: Zipped exercise from sharing repository (branch master, latest commit)
|
|
|
|
|
|
|
|
Connector --> "User Browser": Result (HTML, PDF, ..., further actions)
|
|
|
|
deactivate Connector
|
| ... | ... | |