-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create plugin that shares the collab mgr session id and metadata about selected element(s) in a Capella model #1
Comments
This issue is related to: DSD-DBS/capella-collab-manager#1016 |
Hi @MoritzWeber0, I think a better structure for the JSON data is an array of selected elements: [
{
"uuid": "{uuid_of_element}",
"name": "{name_of_selected_element}",
"model_uuid": "{uuid_of_model}",
"model_path": "{path_to_model_relative_to_workspace}"
}
] That is simple and clear (also in the needed Java code) |
This structure of also fine for me. |
Alright. Can we introduce another environment variable named |
What would be a possible value of it? The full URL to the Collaboration Manager API endpoint where you have to send the payload to? This would be possible. |
Yes, full URL with a path parameter or anything that expects the collab mgr session id which I read from the containers env var and set before sending the HTTP request. |
Want to rename this to |
The idea is to create an addon (deployable .jar that can be put into the
dropins
folder of a Capella installation).Requirements:
R1
The plugin shall automatically be activated when Capella starts
R2
When the plugin has been activated, it shall identify the Capella Collaboration Manager session id once.
Comment: The Capella Collaboration Manager session id will be provided as environment variable
CAPELLACOLLAB_SESSION_ID
as documented here.R3
The plugin shall run a timer with a frequency of 500 ms
R4
When the timer runs a loop, the plugin shall determine the (list of) selected element(s) and information about the corresponding Capella model (project)
R5
When the timer runs a loop and the selection of elements differs from the previous loop, the plugin shall send (HTTP POST request) the following data:
R6
The plugin shall send the data to a network host that will be specified in the environment variable
SELECTED_ELEMENTS_SERVICE_TARGET_URL
. The endpoint will accept a parameter namedcapellacollab_session_id
.Comment: The HTTP POST request will be sent to
https://host/endpoint?capellacollab_session_id=(...)
Implementation status:
The text was updated successfully, but these errors were encountered: