Author Topic: How do you get the system of interest into the scenario context in use cases?  (Read 4390 times)

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
In the scenario editor of a use case, or a classifier, I am trying to type in the name of the subject in the step to get it to show as an underlined hyperlink. However, only those items that have associations with the use case are shown. I could add the reference manually by "add reference to context", but I am wondering if there is something I am doing wrong at the modelling level. In the EAExample model, they also just show "System" without a hyperlink, while the actors and other linked items do show up in the context.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
The system under consideration is shown as a simple border containing the relevant use cases.

q.

Elpis

  • EA User
  • **
  • Posts: 42
  • Karma: +6/-0
  • Make MDA/MBSE vital.
    • View Profile
The system under consideration is shown as a simple border containing the relevant use cases.
But this, if used, is only visual clue, about what is the "system under consideration of Use Case(s)". And it is not used often, especially, if there are plenty of Use Cases for the system.

Formally (UML), a UC may be associated with many( 0..*) Classifiers as their subject. In practice, there is usualy one such a subject (system) for a particular UC.
As I know, EA has no way to specify formally subject(s) for a UC, so it is usually inferred to be a Classifier element being parent/owner of the UC (or scenario itself), or just presumed one.

[...] I could add the reference manually by "add reference to context", but I am wondering if there is something I am doing wrong at the modelling level. [...]
I don't think you are doing it wrong or against EA or UML. But it brings much more work to be done (adding reference to context of scenario in every UC) and IMHO it's not worth of that burden (unless you are forced to do so). BTW Will EA update referenced element name in scenarios, if it is renamed in the model?

philchudley

  • EA User
  • **
  • Posts: 740
  • Karma: +20/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Not Sure if this will help but in SysML (and I assume similar would work as well), I use the relationship matrix to allocate blocks to use cases using the SysML allocate relationship. (In UML another relationship would work).

Then in the scenario, if the name of a block that is allocated to the Use Case owing that scenario the name is underlined and a hyperlink s created allowing the block to located in the Browser.

Certainly, setting a classifier for the Use Case (Ctrl +L) displays the classifier on the Use Case diagram but does not create an hyperlink in the scenario.

Phil
follow me on Twitter

@SparxEAGuru

mse

  • EA User
  • **
  • Posts: 303
  • Karma: +1/-0
    • View Profile
philchudy,

Thanks for this advice, that solves my problem. After inserting an <<allocate>> in SysML, I have access to the context. I wanted to make sure of something however. I drew the relationship like this:

Use Case --> Block

choosing "allocate to" in the context menu when I drew the arrow.

In SysML, I get confused sometimes in BDD diagrams where I see "allocateFrom", but the arrow is the opposite direction, so it is kind of odd to read. That is the reason for asking about the direction and the choice of allocateTo or allocateFrom.

philchudley

  • EA User
  • **
  • Posts: 740
  • Karma: +20/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Happy to help.

I have checked my Relationship Matrix in my SysML models and the allocate relationship is set:

source is Block
target is Use Case


So if creating the allocate on a diagram I would quicklink from block to use case and select allocate to

Al the best

Phil
follow me on Twitter

@SparxEAGuru