Understand the art of the possible. My mission is to make executable Model-based Systems Engineering (MBSE) easy with the Object Management Group's Systems Modeling Language™ (SysML®) and UML® to make simple modeling easy to deploy to the masses. This site provides practical experience of tuning IBM® Rational® Rhapsody® - a precision engineering UML/SysML tool. Rhapsody tips and ideas will be posted with links to videos. You can follow by email (if google app is allowed).
This short "tips and tricks" video takes a look at what causes and how to fix unresolved references in an IBM Rational Rhapsody project. These can occur when Rhapsody needs to change an element to keep model consistent but the owning units (i.e. files) are read-only. This makes it a topical subject when it comes to discussing the relative merits of pessimistic vs optimistic merging as modern SCM tools such as Rhapsody Model Manager do actively allow optimistic merging and emphasize the propagation of consistent change sets that prevent models becoming inconsistent. The video perhaps highlights some of the issues that come from managing a model with a pessimistic strategy that requires users to check-out files. As you'll see in the video Rhapsody attempts to circumvent the problem by warning the modeler. It can even automatically check out the units to keep a model consistent.
A key tip is that the Advanced Search and Replace dialog allows you to search models for unresolved references and remove them. It's probably worth periodically checking models using this a housekeeping technique as their existence may point to usage problems.
Those with keen eyes may also spot a new Add "peer" menu item, as the video uses Rhapsody v8.4 (build 9841247).
This video follows on from Tip #56 and shows creation of tables and matrices in Rhapsody. Allocation is a SysML new term dependency type, hence the tricks really apply to any new term dependency, e.g., they'd work for requirement traceability relations. The video starts with simple matrix and relation tables views (you have to create the layouts first) and then goes on to show how to create a context pattern table view. As you'll see it takes a little while to get the context pattern to do what you want and you need test it, but once you have it the views that are possible are huge. The key thing is that you build the relation table you have to follow the structure of the model. The order of the columns, however, can be in any order. You can also collapse the first column to make it more succinct. Enjoy!
Having finished (or been in the process of finishing) a lot of consulting jobs, I'm in a spate of training's at the moment. The following is the feedback summary from my May 7-10 training.
Feedback forms included "Very useful to have the mix of theory, demos & hands-on" and "clear, concise information in core sections with expanded info available. Easily followed labs with good, structured progression".
For my perspective, the benefit of the 4 day training was the re-enforcement of learning at the end. Following the "let's create a system from scratch" example from use case to white box at the end proved to be quite good fun, and it was great to see the creativity in the team.
The following is a little demo I did recently on a training to illustrate the concept of allocation in SysML. Overall the concept is very simple, of course, which is that allocation is a cross-cutting construct that uses a UML dependency as its base type. This "create a model from scratch" video shows an example of creating two hierarchies, one structural and one behavioral, and then relating them using «allocate» dependencies, and visualizing the relations in compartments. I illustrate this by creating a New Term «FunctionBlock» stereotype (this is a slightly more advanced topic of discussion, of course, but is a topic that comes up a lot, especially with my automotive customers).
The SysML profile provides a dependency stereotype called «allocate»
Often allocation is used where you want to allocate behavior elements to structural elements, i.e. behavioral to structural allocation.
Allocation can be visualized in compartments, e.g., AllocatedTo and AllocatedFrom, that can be shown using the Display Options... dialog.
Allocation compartments work for a range of elements in Rhapsody, including Operations, Blocks and Activities.
If you didn't know already Rational Rhapsody v8.4 was made Generally Available (GA) last week on April 23, 2019. This corresponds with the release of Rhapsody Model Manager (RMM) v6.0.6.1, Rhapsody's Jazz-based server for model management, web browsing, and OSLC linking with DOORS NG, Work Items in RTC, and test data in Rational Quality Manager.
The CSVImporter has been a feature in Rhapsody for a while. I was using it with a client just last month to import some data exported as a spreadsheet from DOORS as stereotyped objects in the model. It was proving so useful that I thought it would make a good tips and tricks video. It's worth noting that you can capture column values as either tags or built in fields such as the Description field. There are some important tips to remember shown in the video. For example, don't forget that Rhapsody normally has restrictions to prevents elements that are Objects or Classes (or parts/Blocks) having spaces in their name. I hope it proves useful.
1. First off, if we have an Excel file then we need to save it as a Comma Separated Value (.csv) format file.
2. The CSVImporter is a special type of table layout in Rhapsody.
3. The Criteria tab of the Features dialog is used to select which type of element to import the CSV contents into.
4. Stereotypes with tags are a common way to capture new types and the meta-data associated with them.
5. Do forget that if your element has spaces in it, and the meta-class you've chosen to import into does not allow them, then you need to first set-up Rhapsody to allow spaces.
6. You can relax this rule by setting a more relaxed regular expression in the General::Model::NamesRegEx property.
7. In the CSV Import Settings (launched from the right-click menu) we can specify which file to import and where to import into. We can also tick a box to ignore the heading row, if there is one.
8. The Features > Columns tab is used to specify where to import the Columns in the CSV into, e.g., you can specify to put the cell value in a tag owned by a stereotype.
9. You can perform the import by right-clicking the CSVImporter table layout.
10. Each CSV row has been imported as an element in the model, together with the tag values and the Description field.
11. We can change the display options on the diagram to see the imported values.
12. A property called General::Model::CSVImportPolicy controls whether the file or the model is favored if the import is carried out again.
13. That's not all. There are another couple of cool features. Right-click the CSVImporter and you can easily create a table view of the data that was imported.
14. There's also the ability to export a table view as a CSV file.
It's been a busy year for me. Three longer-term consulting jobs and then a spate of training in April. This was the feedback from my public training Apr 2-4 2019 at the new MIRA Technology Institute building near Nuneaton, UK in conjunction with HORIBA MIRA.
It was a three day compressed course on Mastering MBSE with OMG SysML and IBM Rational Rhapsody course using the latest IBM Rational Rhapsody 8.3.1 release. Again, lots of functional safety engineers present.