I have received this "boiler plate" response for my SR#120909635 (btw I'm still waiting for rational support feedback a week after my last reply...).
My problem is that external documents and the model (and cat files) are stored in clearcase. A developer will potentially have many clearcase views that will access these artifacts in different development branches. Since each view get assigned different logical units I still wonder how we can support this development model using the pathmap. We tried to adapt the "boiler plate" pathmap (may be we should not do that but then support has to tell how to support the above model) and we defined it as $MYPATH=\mypath so that the same model can be used on different clearcase views (that may be using different logic units X:, Y:, Z:) and we can see the model from Solaris workstations as well (where it is defined as $MYPATH=/usr/vobs/mypath). BUT, if you modify any cat files or create external references, you'll see the logical units beeing saved in rose petal file!? E.g., > external_doc_path > "Z:$MYPATH\..." Moreover, any references to > external_doc_path > "$MYPATH\..." will generate a warnings like > Warning: The virtual path $MYPATH/... > is not in the virtual path map. while, amazingly, a simialr virtual path will work for controlled units!? Anybody got lucky at making this thing workable? Thanks, Herve. Viswanathan, Annamalai wrote: > Andrea, > > > > Listed below is a Solution that you might find helpful: > > > > ///// > > QUESTION: > > Is there a mechanism to store virtual paths for the file attachments to > model > elements. Is this possible to do? If so, how? > > ANSWER: > > Yes this is possible. Essentially this works the same way as it does for > controlled units. Listed below are two different scenarios. One > involves a > situation where a file is not yet attached to a use case and the other > involves > a situation where the file is already attached to a use case. > > --- > 1. Let us consider a situation where you want to attach a file to a > use case > but you want the path to the file to be denoted by a pathmap and not by > a hard > coded path. > > - Lets say that you have a model called myModel.mdl. This model has a > use case > called UC1 and you want to attach a file called File1 to UC1. Lets say > that > File1 exists in a folder called C:\myDir\myFiles > > - First do a File|Edit Pathmap. In the Virtual Pathmap dialog box > define a new > pathmap called $MYFILES and map this to the C:\myDir\myFiles directory. > Then > apply the changes and close the dialog box. > > - Now attach the File1 file to the UC1 usecase. Although the Use Case > Specification will indicate that the path to the File1 file is > C:\myDir\myFiles, in fact the $MYFILES pathmap will be used to denote > the path > to File1. You can verify this by saving the model and then opening up > the .mdl > file in a text editor. You will see that $MYFILES is being used and not > C:\myDir\myFiles. Keep in mind though if you do open the model file in > a text > editor be sure not to alter the file in any way by adding an extra space > or a > carriage return etc. This would cause problems when you try to open > the model > file later. > --- > > --- > 2. Now consider another situation where you have a model file called > myModel.mdl which contains a usecase called UC1 that has a file called > File1 > attached to it. File1 resides in the C:\myDir\myFiles directory. > > - Once again do a File|Edit Pathmap. In the Virtual Pathmap dialog box > define > a new pathmap called $MYFILES and map this to the C:\myDir\myFiles > directory. > Then apply the changes and close the dialog box. > > - Now you need to make some small change to the model and then save > it over > in order for the pathmapped path to be picked up instead of the hard coded > path. This could be any sort of change such as adding an attribute and > deleting it or moving something around in a diagram etc., i.e. anything > that > would force Rose to save the model over. The change from the hard > coded path > to the pathmapped path would occur when Rose resaves the model. If > your model > contains controlled units and if the usecase with the attached file is > located > in a controlled unit then you would need to make some small change in the > controlled unit package and then save the model in order to force Rose to > resave the .cat file. > > - Once again you wont see in the Use Case Specification that the > virtual > pathmap is being used instead of the hard coded path. However when you > open > the .mdl (or the .cat) file in a text editor you will see that the > pathmap is > being used. Again, be sure not to edit the .mdl (or .cat) file in > the text > editor even by accident since that would affect the model when you try > to open > it up next. > --- > > > For more information, contact Rational Software Customer Service. > > ///// > > > > Regards > > > > Vishu > > > > > > ********** > > Annamalai "Vishu" Viswanathan -- [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > Senior Technical Support Engineer > > > > Rational Customer Service - Committed to Service Excellence > > SCP Certified: http://www.rational.com/support/scp.jsp > > > > Rational User Conference 2002.....Freedom to Create! > > Call for Papers Now Open at http://www.rational.com/ruc > > August 18-22, 2002 > > Lake Buena Vista, Florida > > ********** > > > > -----Original Message----- > From: Andrea Fasanella [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 5:14 AM > To: [EMAIL PROTECTED] > Subject: (ROSE) manage links to external docs > > > > hi all > > my Rose model has several external docs linked to it > > When you link an external doc, the pathname of the external file is > absolute. > > By this way, if you move the model, the pathnames of the external docs > should be > > changed and that it's really time consuming > > Does anyone know if it's possible to make them relative ? > > Would it be possible to use a environment variabile ? > > Thanks, bye > > > > =========================== > > Andrea Fasanella > > Business Area Finance > > > > ETN�TEAM SPA > > Via dei Valtorta 48, 20127, Milan, Italy > > Mobile: +39 (348) 4033221 > > Phone: +39 (02) 26164449 > > =========================== > > > ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************
