Book a Demo

Author Topic: Use Case with Stereotype  (Read 6226 times)

Jumbik

  • Guest
Use Case with Stereotype
« on: November 25, 2002, 01:20:52 pm »
We are modelling system in Use Case Model. It is a great system integrated from another finished systems and only a "little part" will be programmed. Customer wants to see the whole system in whole integrated funkcionality, our developers from our team want to see only use cases of solved "little part". I think, it is possible to do this by stereotype of use case with name <<external>>. These use cases will have another color and they are not the subjects of developing, but they are also components of delivery.

But I cannot put new stereotype for use case. It is not possible, because use case is not in list of Base Class for new stereotype.

Is it purpose? I think, in metamodel UML is no constraint, the stereotype is for "anybody".

Thanks for answer,  

Jumbik

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Use Case with Stereotype
« Reply #1 on: November 25, 2002, 08:38:19 pm »
Hi Jumbik,

True, in References -> Stereotypes  there is no option for use cases in "Applies to"; true, also, that UML allows for stereotyping of any classifier and any association. But use cases are classifiers (for those not familiar with the concept, these are, basically, UML elements that have both attributes and behaviour), and there is an option for "Applies to" "classifier" in References -> Stereotypes, and you can create the <<external>> stereotype for your use cases there.

After you create this stereotype for classifiers, it will be available in your use case dialogs.

To automatically give these use cases a clear visual cue, just follow the instructions on metafiles in help.

Hope this works for you, and good luck!

Jaime Gonzalez

Jumbik

  • Guest
Re: Use Case with Stereotype
« Reply #2 on: November 25, 2002, 11:05:13 pm »
Hi jaime,

I had the same idea in last, but I think, it does not work. I added a stereotype <<external>> to classifier, but my use case does not feel it...  

Jumbik.

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Use Case with Stereotype
« Reply #3 on: November 28, 2002, 03:42:10 pm »
What version and build are you using?

I created an <<external>> stereotype for classifiers using version 3.11, build 504 (Reference -> Stereotypes    Stereotype: external, Applies to: classifier) and I can see it in the Stereotype dropdown edit in the use case's dialog.

Of course, it does not show up as <<external>> in the diagram representation of the use case; but very possibly you can give it a visual cue by using the metafile procedure. (I did not try the metafile.)

Jaime
« Last Edit: November 28, 2002, 04:03:07 pm by jaimeglz »

Jumbik

  • Guest
Re: Use Case with Stereotype
« Reply #4 on: November 29, 2002, 12:33:28 pm »
Hi jaime,

I have ordered EA by Internet, now I am playing with trial with this infos:

3.50.577, build 577, database version 3.50 from oct 01 2002.

I see stereotype external in list of stereotypes (Stereotypes / Listview named Current stereotypes, row: Applies to = classifier, stereotype = external, note = empty), but it is not in list - combobox Stereotype in  my Use Case ( I see in alpahabetical order values ...enumeration, exception, form..., and external is missing)

Jumbik

Jumbik

  • Guest
Re: Use Case with Stereotype
« Reply #5 on: December 05, 2002, 12:43:12 pm »
Hi,

I must return to my problem with sterotypes in Base Class  Use Case. I have EA 3.50, build 584 (not trial but real version now) and the problem with stereotypes remains. I cannot put stereotype to Base Class Use Case and when I assign this stereotype to Classifier, Use Case has not this stereotype. I need stereotype for UC in my project... Do you know about any solution?

Jumbik.


Jaime Gonzalez

  • Guest
Re: Use Case with Stereotype
« Reply #6 on: December 06, 2002, 08:02:11 am »
Hi Jumbik,

You are right: in EA 3.1 use cases recognize classifier stereotypes, but not in 3.5. However, they do recognize class stereotypes.

I hope Sparx fixes this; but, meanwhile, why don't you use the procedure I suggested using class instead of classifier?

Hope this helps.

Jaime

Jumbik

  • Guest
Re: Use Case with Stereotype
« Reply #7 on: December 06, 2002, 11:47:00 am »
Thanks jaime,

with class it works OK, problem is over  (en passant -  where was this suggestion with class? I really did not espy it and I missed it :) )  

Jumbik.


Jaime Gonzalez

  • Guest
Re: Use Case with Stereotype
« Reply #8 on: December 06, 2002, 12:04:15 pm »
Sorry that I did not express myself correctly: the suggestion I was reffering to is the one I already made on classifiers.

Jaime

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Use Case with Stereotype
« Reply #9 on: December 07, 2002, 03:20:59 am »
Hi,

The next build of EA will contain a fix for this - use cases will appear in the stereotype drop list, and use cases will also pick up the classifier base class.

The next build will be 585 and it should be released in a day or two.

Geoff Sparks