Book a Demo

Author Topic: Can a use case be in more than one package?  (Read 3229 times)

Mr. George S

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Can a use case be in more than one package?
« on: January 01, 2010, 06:45:32 am »
My EA model is organized into different component packages.  Within the packages are use cases and use case diagrams.  The diagrams contain use cases from other packages.  When I create an RTF documentation, the use case scenario information only appears for the use cases in the package where the RTF was created.

Is there a way to either have the RTF document pull in the use case information from a use case that is in the diagram though not in the package?  Or alternatively, have an "linked" use case that is in the reporting package, but is maintained by the"real" use case in another package?

Thanks

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Can a use case be in more than one package?
« Reply #1 on: January 01, 2010, 07:40:06 pm »
Hi George,

Does other informatin from the problematic use cases (such as the Notes etc) appear int he RTF report?  If so; then it's probably a bug.  Report it via the links at the bottom of the page.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

paddler

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Can a use case be in more than one package?
« Reply #2 on: January 05, 2010, 01:17:17 am »
HI

 This isn't a bug but the solution is not straightforward ( I wish it was).

 The two steps:

a. Write a document template
b.  tweak your diagram properties

A. Write a document template:

 Check what template that you are using to generate the RTF document. Open up a template and look at the "selections" check boxes on the left hand side. Make sure that the "Package ->Diagram" box is checked. Save the new template

B. For every diagram where a "linked" object occurs ( i.e. not its home pacakge but the package to where you have "linked" or "dragged" an object) ensure that the "Document each contained element in RTF" is ticked off on the Diagram->Properties window.


 Hope this helps :D
"perfect is the enemy of good enough" - Voltaire

Mr. George S

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Can a use case be in more than one package?
« Reply #3 on: January 05, 2010, 05:52:28 am »
I am able to get the notes from a use case that is not in the same package as the diagram containing the dragged in use case.  However, I cannot get the requirements nor scenario of the use case.

On the sections tree of the template creator, there is Package -> diagram item and then -> element item.  Inserting the element and then right clicking gives me a list of properties.  Notes for the use case element is there but requirements nor scenario is listed.
« Last Edit: January 05, 2010, 05:56:14 am by gspecto »

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Can a use case be in more than one package?
« Reply #4 on: January 05, 2010, 09:00:44 pm »
Quote
I am able to get the notes from a use case that is not in the same package as the diagram containing the dragged in use case.  However, I cannot get the requirements nor scenario of the use case.

On the sections tree of the template creator, there is Package -> diagram item and then -> element item.  Inserting the element and then right clicking gives me a list of properties.  Notes for the use case element is there but requirements nor scenario is listed.

Insert an empty <element></element> section with nothing in it in the diagram section and a standard element section somewhere in the template with the requirements properties.
This should help.

Code: [Select]
<diagram>
...
<element>
</element>
...
</diagram>
<element>
...
<requirement>
...
</requirement>
...
</element>


Oliver

Mr. George S

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Can a use case be in more than one package?
« Reply #5 on: January 06, 2010, 02:12:19 am »
Yes, that will do it.  I figured that out yesterday and was going to post the solution and you beat me to it.

Thanks very much for your help!

George