If an Rhapsody package is locked in Design Manager, then are the child packages automatically locked too?
Environment:
Rhapsody 8.2.1. 64 bit, iFix 2
DM 6.0.4 iFix007
Steps:
=====
1) Open a model in Rational Rhapsody from Design Manager (Open From Design Manager)
2) Expand the model tree and right-click on a particular package below the "Packages" tree item.
Note: The package contains sub-packages!
3) From the context menu, select menu item Design Manger > Lock
Result
=====
As a result, the package's icon in the model tree in the model browser (Alt+0 to open the view) is decorated with a lock.
Questions
=======
Q1: Are the child packages also automatically locked?
If positive, why the child elements' icons are not decorated with locks?
Q2: If not, is it possible to enable recursive locking of child elements and how?
Accepted answer
Hi Krasimir,
the lock mechanism in Rhapsody Design Manager is not recursive. Only the package itself is locked, by not the packages (or other Save Units) beneath it.
To lock an entire sub tree, you can use the Java API recursively:
IRPModelElement.lockDesignManager()
IRPModelElement.unlockDesignManager()
Still I would review the workflow, as by design Rhapsody locks the required elements on editing, no need to lock them all.
David
Comments
Hello, David.
Thank you for your answer!
I would have some additional questions about the auto-locking feature of Rational Rhapsody soon.
Question: Can you please help me find the best ( :-) ) source of information, which would lead me to a graceful introduction to the Rhapsody API (such as a step by step tutorial similar to the numerous articles of Ralph Schoon’s about RTC in https://rsjazz.wordpress.com)?
Cheers, Krasimir Malchev