I recently did a Rhapsody health check for a large organisation that has been a Rhapsody user over multiple years. A health check is really 3 days of consulting with a report and recommendation read-back based on interviews and observations. It asks questions like whether there are quick wins that could be had from changing how Rhapsody is used, using new features, or learning new techniques and features.
1. More refined use of Gateway, particularly when dealing with multiple input documents.
2. Issues caused over time by sub-optimal property settings when managing Rhapsody units with Subversion (unresolved references).
3. Assessing potential and ease of upgrading to later versions (particularly related to use of 64 bit) and whether safe to do so.
4. Thinking about how internal teams share ideas and best practice.
5. Whats new review, esp around Jazz.
Rhapsody has so many hidden features, and teams change over time, so having an external expert engage for just a short time is an efficient way to oil the wheels and re-energize users with new ideas.
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).
Monday, 19 August 2019
Sunday, 11 August 2019
Rational Rhapsody Tip #62 - Orthogonal/parallel regions in state machines
This 4 min silent video explores some of the executable semantics around the use of orthogonal regions in state machines. Most of these semantics come from work done by Dr David Harel and his colleagues in the 1980/90's on statecharts, which were subsequently subsumed into the Unified Modeling Language, and inherited by SysML. Essentially orthogonal regions in a state machine are regions that execute concurrently as part of an owning state. Each region becomes active when its owning state is entered. In Rhapsody we can create any number of these using an And Line. It's possible for orthogonal regions to influence each other. These video explores 3 ways:
- We could get one of the regions to generate an event. Essentially, the event would be placed on the event queue for the thread and then consumed as a trigger in another parallel region.
- A second approach would be for a parallel/orthogonal region to query the state of another region using IBM Rational Rhapsody's IS_IN macro. This macro allows you to query if the state machine is in a particular state.
- A third approach would be to query the state of an attribute. As the scope of the state machine is a classifier, the attribute would be visible in the state machine and could be used in a guard-based transition. There's a caveat here. Guard-based transitions are tested on entry to a state or when an orthogonal region performs a transition. To get guard-based transition to be re-tested then a transition needs to be performed in one of the orthogonal regions. This silent video with captions highlights this.
Sunday, 28 July 2019
Rational Rhapsody Tip #61 - Checking RTC Eclipse is set-up for IBM Rational Rhapsody use
One of the questions I had recently in training related to how to check whether your RTC Eclipse client is correctly set-up for use with Rhapsody. The RTC Client is used in concert with Rhapsody for both the Rational Model Manager (RMM) and Rational Team Concert (RTC) integration. If you have incorrectly set up the client then this may cause significant issues, particularly if it tries to use a textual merge, rather than the Rhapsody DiffMerge tool. This video (with voice), which shows Rhapsody v8.3.1 with Jazz/am 6.0.6, covers 4 checks that you can do.
This video covers how to check that your RTC Eclipse client is correctly set-up for Rhapsody use with IBM Jazz's /am or /ccm application (RMM/RTC).
When using Rhapsody with Rhapsody Model Manager (RMM) or Team Concert (RTC) the file is stored on the file-system in a sandbox area. RTC Eclipse is run at the same time as Rhapsody to act as the bridge to the Jazz/am or Jazz/ccm application and the status of the units is provided directly in the Rhapsody browser.
There are 4 checks shown in the video:
1. Firstly, you need to check that the IBM Rational Rhapsody integration for Rational Team Concert plugin is installed. The plugin files are provided as part of the Rhapsody install. An Eclipse 64 bit client will work with both 32 and 64 bit Rhapsody. If you have 32 bit Rhapsody then make sure you install the 32 bit version of the plugin
2. Rhapsody and RTC Eclipse communicate via a port on the machine. The Eclipse client's error log can be a useful diagnosis tool, as it will report whether the comms is working between Rhapsody and RTC.
3. The Rhapsody model consists of unit files under the _rpy folder. You need to check that the Automatically detect changes box is checked in the Team > Jazz Source Control > Local Changes preferences for Eclipse. This will mean that when files are saved, the Eclipse client will update it's status.
4. Finally, check that Eclipse is using the Rhapsody DiffMerge tool for Rhapsody unit file types in the Team > Jazz Source Control > External Compare Tools preferences. Double-clicking a file in the Pending Changes should launch Rhapsody DiffMerge. By default Rhapsody DiffMerge will ignore graphical-only differences, but you can choose to show them if you wish
This video covers how to check that your RTC Eclipse client is correctly set-up for Rhapsody use with IBM Jazz's /am or /ccm application (RMM/RTC).
When using Rhapsody with Rhapsody Model Manager (RMM) or Team Concert (RTC) the file is stored on the file-system in a sandbox area. RTC Eclipse is run at the same time as Rhapsody to act as the bridge to the Jazz/am or Jazz/ccm application and the status of the units is provided directly in the Rhapsody browser.
There are 4 checks shown in the video:
1. Firstly, you need to check that the IBM Rational Rhapsody integration for Rational Team Concert plugin is installed. The plugin files are provided as part of the Rhapsody install. An Eclipse 64 bit client will work with both 32 and 64 bit Rhapsody. If you have 32 bit Rhapsody then make sure you install the 32 bit version of the plugin
2. Rhapsody and RTC Eclipse communicate via a port on the machine. The Eclipse client's error log can be a useful diagnosis tool, as it will report whether the comms is working between Rhapsody and RTC.
3. The Rhapsody model consists of unit files under the _rpy folder. You need to check that the Automatically detect changes box is checked in the Team > Jazz Source Control > Local Changes preferences for Eclipse. This will mean that when files are saved, the Eclipse client will update it's status.
Friday, 5 July 2019
Rational Rhapsody Tip #60 - Initializing your history connectors (in state machines)
This video came from a question I got asked in a web-based Rhapsody "hands-on" tool training course this week, which is really what are history connectors and how to use them in Rhapsody when you're building and running with the event driven framework (OxF). Unusual for me, I just banged it out with the microphone running (which worked, well mostly ;-) I've included a summary below in case you can't YouTube the whole 8 mins.
Firstly if we take this statechart we can see that if I exit and return a state then the default transition will be taken:
Firstly if we take this statechart we can see that if I exit and return a state then the default transition will be taken:
A history connector is a way to get the state-chart to remember the state it was in when you exit and return to it when you re-enter. The UML would normally have you drawing it something like this:
The trouble is, this won't work if you want Rhapsody to generate the desirable code, i.e. Rhapsody will still take the default transition if you re-enter the state.
to draw the history connector correctly in Rhapsiody (at least correctly to generate the correct code), you need to a) Draw the default transition to the History Connector, and b) Draw a transition from the history connector to where you want the default transition to go.
This has the effect of initialization the history connector to the default transition.
.. and then remembering the history, the next time you re-enter the state (and the default transition is called upon).
Saturday, 15 June 2019
Rational Rhapsody Tip #59 - Using a Perspectives toolbar to simplify the user interface
One of the challenges for a tool vendor is how to make the product more consumable to a wider user base. Often, new users can be overwhelmed by the range of options available in a tool that has over 23 years of active development behind it. One of the ways the development team attempted to address this challenge was to add something called a Perspectives toolbar.
I did this video in response to a client in my Rhapsody training a week or so ago. They were complaining that the user interface of Rhapsody had the old type of SysML ports (standard and flow ports) still available as well as the new ones (proxy and full). My explanation was really that different users still want to use them and it's difficult to keep everybody happy. The perspectives toolbar, however, offers the potential to do this because you can simplify the menus based on a pull-down list. Here's the catch, the standard SysML Perspectives toolbar isn't something I'd use. For me, the savvy user would create their own. In this video I show both the out-of-the-box perspectives toolbar and one I created myself. Like most things in Rhapsody, everything is customizable with Rhapsody properties.
IBM Rational Rhapsody's perspective toolbar simplifies the Rhapsody menus based on a pull-down list on the user interface. It is designed to allow users to simplify the user interface to make Rhapsody and UML or SysML easier to consume by new users.
Two perspective toolbars are provided out-of-the-box, one for SysML and one for UML. The perspective toolbars are conveyed to a project using a Setting, a special type of Profile that conveys just properties rather than stereotypes/tags.
If we create a SysML (or UML) project without specifying the Perspective settings then Rhapsody will ask us if we want to add the corresponding setting to the model.
We can choose Don't ask me again, if we wish, in which case the choice would be preserved in the rhapsody.ini file as SetSysMLPerspectivesSettingsForNewSysMLProject=TRUE (or FALSE).
When a project opens, a hint will be displayed to warn the user that the menus are simplified. Perspectives will influence many things.
Note how the drawing toolbar changes when we switch between Basic:
... and Advanced:
The toolbars and main menus are also affected. For example, when we switch from Advanced to Basic then the Simulation toolbar disappears, and the Diagrams toolbar looses a couple of diagrams.
The use of system simulation, for example, could be considered to be advanced, hence when we switch from Advanced to Basic the complete Simulation menu structure is removed.
This is all powerful stuff, of course. Designed, ultimately, to present a simpler tool UI to users with different roles. However, there are some catches. Why does the Windows toolbar disappear for Basic users? Personally I always teach new users about the value of this toolbar. It allows you to easily show and hide parts of the workspace.
Also, if I create the BDD and have the Basic role selected then the Directed Composition is removed.
The thing is that different projects and methods will want to use different parts of the language. This is quite natural in any language. For you decide, for example, that you want to make use of proxy ports for everything then you can easily set up Rhapsody to remove the flow ports, standard ports and full ports. If you decide that you only want to use control flow on activity diagrams then a similar approach can be used.
I did this video in response to a client in my Rhapsody training a week or so ago. They were complaining that the user interface of Rhapsody had the old type of SysML ports (standard and flow ports) still available as well as the new ones (proxy and full). My explanation was really that different users still want to use them and it's difficult to keep everybody happy. The perspectives toolbar, however, offers the potential to do this because you can simplify the menus based on a pull-down list. Here's the catch, the standard SysML Perspectives toolbar isn't something I'd use. For me, the savvy user would create their own. In this video I show both the out-of-the-box perspectives toolbar and one I created myself. Like most things in Rhapsody, everything is customizable with Rhapsody properties.
IBM Rational Rhapsody's perspective toolbar simplifies the Rhapsody menus based on a pull-down list on the user interface. It is designed to allow users to simplify the user interface to make Rhapsody and UML or SysML easier to consume by new users.
Two perspective toolbars are provided out-of-the-box, one for SysML and one for UML. The perspective toolbars are conveyed to a project using a Setting, a special type of Profile that conveys just properties rather than stereotypes/tags.
If we create a SysML (or UML) project without specifying the Perspective settings then Rhapsody will ask us if we want to add the corresponding setting to the model.
We can choose Don't ask me again, if we wish, in which case the choice would be preserved in the rhapsody.ini file as SetSysMLPerspectivesSettingsForNewSysMLProject=TRUE (or FALSE).
When a project opens, a hint will be displayed to warn the user that the menus are simplified. Perspectives will influence many things.
Note how the drawing toolbar changes when we switch between Basic:
... and Advanced:
The toolbars and main menus are also affected. For example, when we switch from Advanced to Basic then the Simulation toolbar disappears, and the Diagrams toolbar looses a couple of diagrams.
The use of system simulation, for example, could be considered to be advanced, hence when we switch from Advanced to Basic the complete Simulation menu structure is removed.
This is all powerful stuff, of course. Designed, ultimately, to present a simpler tool UI to users with different roles. However, there are some catches. Why does the Windows toolbar disappear for Basic users? Personally I always teach new users about the value of this toolbar. It allows you to easily show and hide parts of the workspace.
Also, if I create the BDD and have the Basic role selected then the Directed Composition is removed.
These are not what I would call optimal. The power brought by the perspectives feature, however, remains compelling once you realise that you can create your own.
Here’s an example. I’ve added it to the Settings folder in the standard installation, but it’s really just a way of conveying properties and hence could be done by setting properties in a model directly.
The thing is that different projects and methods will want to use different parts of the language. This is quite natural in any language. For you decide, for example, that you want to make use of proxy ports for everything then you can easily set up Rhapsody to remove the flow ports, standard ports and full ports. If you decide that you only want to use control flow on activity diagrams then a similar approach can be used.
Here's an example of a favoured BDD toolbar in the ChosenSysMLPerspectives.prp. This is just an example that shows how you can easily do stuff like remove UML and flow ports, if you want, as well as add new Term relationships such as Allocation and Satisfaction dependencies.
And here's the IBD:
The good thing about the perspectives is that you can filter stuff out, but you can switch the menus back, with relative ease.
Monday, 10 June 2019
Reflections on web-based training
Last week I had a web-based Rhapsody training to deliver all week. This followed 2 weeks where I was delivering remote training in May (using an interactive delivery platform). The benefits to me are to make it much easier to reach new markets. I can also fit more things in without the logistics of travel (e.g. some of this training was to West Coast). For customers there are also benefits:
1. Multi-site: Training can be given simultaneously to engineers at multiple sites, without travel costs (good where there's a global team).
2. More flexibility of schedule: Training can be discontinuous, e.g., 2 days one week, 2 days the next, or given on half days, if beneficial.
3. Pre-configured environment: Client doesn't have to try and set up a complex training environment or install tools. The training environment includes DOORS and IBM Jazz products as well as Rhapsody.
4. Costs: Avoiding travel and logistical costs helps keep prices down.
1. Multi-site: Training can be given simultaneously to engineers at multiple sites, without travel costs (good where there's a global team).
2. More flexibility of schedule: Training can be discontinuous, e.g., 2 days one week, 2 days the next, or given on half days, if beneficial.
3. Pre-configured environment: Client doesn't have to try and set up a complex training environment or install tools. The training environment includes DOORS and IBM Jazz products as well as Rhapsody.
4. Costs: Avoiding travel and logistical costs helps keep prices down.
Saturday, 1 June 2019
Useful IBM support page for knowing what iFixes are available for Rhapsody
An iFix is an "Interim Fix" in IBM speak. They come out periodically between IBM Rational Rhapsody releases and can be accessed from Fix Central.
A support site that is useful may be this one:
https://www-01.ibm.com/support/docview.wss?uid=swg21986180
It lists what iFixes are available without needing to search Fix Central, hence I thought I'd share the URL in case it's useful.
It's worth knowing that the Rhapsody team packaged the 8.3.1 iFix003 quite well. You can run a setup.exe as administrator that does the install. The previous manual steps have been automated which is good.
A support site that is useful may be this one:
https://www-01.ibm.com/support/docview.wss?uid=swg21986180
It lists what iFixes are available without needing to search Fix Central, hence I thought I'd share the URL in case it's useful.
It's worth knowing that the Rhapsody team packaged the 8.3.1 iFix003 quite well. You can run a setup.exe as administrator that does the install. The previous manual steps have been automated which is good.
Subscribe to:
Posts (Atom)

















