Versions Compared

Key

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

Syndeia 3.3 (Plugin for Rhapsody)
Tutorial Exercise 7.7
Creating Custom SysML – Jama Mappings

Image Removed

47 Perimeter Ctr E, Suite 410
Atlanta, GA 303046, USA
Voice: +1-404-592-6897
Web: www.intercax.com
Email: info@intercax.com

...

Objectives

The new learning objective of this exercise is to create new SysML_Jama mappings for Model Transform connections. This is intended for an advanced user who will create new mappings that will be used by other members of the organization.

Preparation

Anchor_Hlk504573055_Hlk504573055 Anchor_Hlk505778332_Hlk505778332This exercise assumes the student has

...

  • IBM Rational Rhapsody 8.2 installed correctly on his or her machine with a valid license for use, and

  • Syndeia 3.3 installed as a plugin for Rhapsody with a valid license for use

  • Syndeia Jama interface, correctly installed with a valid license for user.

The user can use any Jama repository they have available with the ability to create and edit model elements within a Jama model. It is generally advisable to carry out these exercises in a non-production repository, a "sandbox", set up for training and practice purposes.
We will use the Rhapsody project Syndeia_Jama_Mapping_Tutorial.rpy provided with the tutorials for this exercise, which loads the profile Syndeia_Mappings_Tutorial_Profile.sbs. We also use the syndeia33TutorialRhp.mappings file provided, which has been installed in the .syndeia folder and renamed as syndeia.mappings.
We recommend that the student view the videos 1.6, 1.7, and 1.8 in the Introduction Section of the Syndeia training materials and review Special Note on Rhapsody SysML Stereotypes in Exercise 7.6 before attempting this exercise. These provide important background on creating custom mappings. Hands-on tutorials omit much of the logic behind the actions in the interest of clarity and brevity.

Any Syndeia user can use or view the mapping specifications, but Syndeia requires a special license in addition to the regular Syndeia license in order to create, modify or delete mapping information. It is good practice to confine this duty to a very limited number of experienced users or system administrators, who will provide mappings for the general users.

Exercise

...

Image Removed

...

  1. Open the SysML project Syndeia_Jama_Mapping_Tutorial.rpy, right-click the Jama_Mapping package, and launch the Syndeia dashboard. Select a Syndeia Cloud project if necessary.

  2. Go to the Mappings tab. If you expand SysML-Jama under Mapping Groups in the left column, the window should appear similar to Figure 1

    Anchor
    _Hlk501357103
    _Hlk501357103
    . The first task will be to create a new mapping using existing artifacts. We assume you have completed Exercise 7.6 and added Failure Mode as an artifact type to Model Types: Jama. If not, do Exercise 7.6 now.

    1. Right-click SysML-Jama and select Add

      Mapping

...

Image Removed

...

    1. Modify the Mapping
      1. Change Name to Activity - Failure Mode (no attributes)
      2. Change Description to SysML Activity – Jama Test Case with no attributes
      3. Change Source Artifact Type to Activity, using pull-down menu
      4. Set Target Artifact Type to Failure Mode, using pull-down menu
      5. Set Structure Level to NO_CHILDREN, using pull-down menu
      6. Set Include Attributes to Exclude Attributes, using pull-down menu
      7. The window should look similar to Figure 2.
      8. Click Save Mapping at bottom of right side (scroll down if necessary).
    1. Mapping

...


  1. Use the new Mapping you just created

    1. Go to the Connection Manager tab. Open a Jama repository in the right column, the SysML model in the left column, and select Model Transform in the center.

    2. Drag the J2::Test_NewFeature activity in the SysML model into an empty set or component in Jama (Jama_Tutorial in this example).

    3. A small pull-down menu will appear on the Syndeia dashboard, as Figure 3, showing the possible mappings available for an activity dragged into Jama.

    4. Select Activity – Failure Mode (no attributes) and click OK.

    5. Expand the Jama_Tutorial component on the right side of the Connection Manager. Check that a new Failure Mode has been created in Jama.

...

Image Removed

  1. The second task is to create another new mapping, this one with attributes shared between the SysML and Jama elements. We will use the Clone Mapping command rather Add Mapping. Clone Mapping saves time when not all features of the new mapping need to be modified.

    1. Right-click Activity – Failure Mode (no attributes) under Mapping Groups/SysML - Jama in the left column and select Clone Mapping

...

Image Removed

...

    1. Modify the Mapping

      1. Change Name to Activity – Failure Mode (attributes)

      2. Change Description to SysML Activity – Jama Failure Mode with attributes

      3. Keep Source Artifact Type as Activity and Target Artifact Type as Failure Mode.

      4. Set Structure Level to NO_CHILDREN, using pull-down menu

      5. At this stage, the window should appear similar to Figure 4.

      6. Set Include Attributes to Include Attributes, using pull-down menu

      7. Click the plus sign box under the Stereotypes table.

      8. A Select stereotype window will open. The window should look similar to Figure 5 (see Special Note on Rhapsody SysML Stereotypes in Exercise 7.6).

...

Image Removed

...

      1. Select Jama_FailureMode and click OK. This choice will appear in the Stereotypes box.

      2. Click the Retrieve Available Attribute Definitions button below the Attribute Definition Mappings table.

      3. Click the plus box below the Attribute Definition Mappings box.

      4. In the new row, select Failure Mode on the right (Target) side of the table, using the pull-down menu showing Jama attributes.

      5. In the new row, select name on the left (Source) side of the table, showing SysML attributes.

      6. Repeat steps xi through xii for the other attributes (GlobalID/Id and Cause of Failure/source) so that the final table looks like Figure 6.

      7. Click Save Mapping at bottom of right side.

...


...

  1. Use the cloned Mapping you just created

    1. Go to the Connection Manager tab. Open the Jama repository you used above in the right column.

    2. Drag the Test_NewFeature Jama testcase created earlier into the empty SysML J4 package.

    3. A small pull-down menu will appear on the Syndeia dashboard, as in Figure 7, showing the possible mappings available for a Jama Failure Mode artifact dragged into SysML.

    4. Select Activity – Failure Mode (attributes) and click OK.

...

Image Removed

...


  1. A new activity (named Test_NewFeature) should appear under J4 on the SysML side. It will have the <<Jama_Failure Mode>> stereotype in addition to Activity and all the tag values associated with that stereotype. In a SysML diagram, this would appear as in Error! Reference source not found..
    Note that SysML activities do not normally have any place to receive the Jama attributes. Because the <<Jama_Failure Mode>> stereotype was made applicable to ActivityDiagram in Rhapsody and was included in the new mapping definition, the new activity was created with that additional stereotype and tag values ready to receive the desired Jama attributes.
    Only two of the three Jama attributes (name and GlobalID) mapped in the Activity – Failure Mode (attributes) mapping have been populated in the SysML element because Cause of Failure was empty in the Jama Test_NewFeature failure mode element.

  2. Modify the new Jama Failure Mode Test_NewFeature

    1. Open the Jama Failure Mode Test_NewFeature from the Syndeia dashboard or the SysML model and add a Cause of Failure, like that shown in Figure 8. Save the change.

...

Image Removed

...

  1. Compare across the new connection, the one with attribute mapping

    1. In the Syndeia dashboard, Connection Browser tab, find the connection from J4::Test_NewFeature.

    2. Right-click and choose Compare Source & Target

    3. The Comparison Result tab should show a discrepancy in the source field, like that shown in Figure 9.

    4. On the top row of the Comparison Result table, right-click and choose Sync Target-> Source

    5. When the sync is complete, the diff table should be solid green, with the Cause of Failure written to the source tag in the SysML element

...

Image Removed

...