Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Exercise

  1. Open the SysML project Syndeia_Artifactory_Tutorial.mdzip (get it here -SysML Models, Profiles and Mappings) (or your own), right-click the Engineering Software Environment package, and launch the Syndeia dashboard (Figure 1).

    Figure 1 Launching Syndeia dashboard

  2. If Syndeia connections are set to store in the SysML model, the dashboard will open immediately. If they are stored in Syndeia Cloud (see Exercise 1.1), choose or create a project for the exercise.

    Figure 2 Adding an Artifactory network connection

  3. To connect to an Artifactory repository, right-click the Artifactory category under Repositories in the Repository Manager tab and select Add… (Figure 2), then enter a name, your own Artifactory URL and credentials, and click OK (Figure 3).

    Figure 3 Entering Artifactory repository info

  4. Your repository should load. Expand it to show Repositories, Packages and Artifacts, as in Figure 4.

    Figure 4 Viewing Artifactory repository contents in Repository Manager tab

  5. To create a reference connection between a SysML element and an Artifactory artifact, go to the Connection Manager tab on the Syndeia dashboard, as in Figure 5.

    1. Expand the SysML model in the left pane to show the CFD 4.0 block.

    2. Select Reference under Connection Type in the middle pane.

    3. Select the Artifactory repository connection for the right-hand column and expand the Repositories folder to show the artifact to be connected, for example, CFD_4.0.pdf.

    4. Drag and drop CFD_4.0 from the left pane on top of CFD_4.0.pdf in the right pane to connect them (or vice versa).

      Figure 5  Syndeia Dashboard, Connection Manager tab

  6. To see the reference connections that have been created, go to the Connection Search tab on the Syndeia dashboard and click the Refresh button (see Figure 6).

    Figure 6  Syndeia Dashboard, Connection Search tab

  7. The reference connections can be used in a number of ways by Syndeia. Close the Syndeia dashboard. To open an Artifactory element directly from MagicDraw, right-click on the CFD 4.0 block in the containment browser and select Syndeia → Open Connected Artifacts.. The Artifactory artifact CFD_4.0.pdf will be opened in the default web browser (see Figure 7). Note: your Artifactory user interface may appear different depending on your configuration settings.

    Figure 7  Artifactory web interface

  8. The reference connection may also be used to detect changes across the connection. To demonstrate,

    1. Make a change in the file CFD_4.0.pdf in the Artifactory repository through its web interface, e.g. create a new version of the pdf and deploy it.

    2. Reopen the Syndeia dashboard. Go to the Connection Browser, expand to find the connection to CFD_4.0, right-click and select Compare Source & Target (Figure 8).

      Figure 8  Syndeia Connection Browser, comparison across new connection

    3. The Comparison Result tab (Figure 9) shows a newer version of the Artifactory file is available. The reference connection can be updated by right-clicking on the red row and selecting either Sync Source to Target or Sync Target to Source.

      Figure 9  Syndeia Comparison Results tab showing a newer version of the Artifactory file available