tags:

views:

35

answers:

4

guys how can I make conditions in use case diagram ? Something like decision node in activity diagram.

For example, If there is "evaluate" usecase which can lead either to Y or N, there is simply no way to express it. There is only constrain feature, that would lead to repeating { if evaluated } {if evaluated } ......

+1  A: 

The Use Case Diagram doesn't seem to fit at all with conditions. Usually, when depicting multiple scenarios, one would make multiple use cases for each one. An activity diagram would be more fitting to display conditional logic.

Jonn
+2  A: 

What you probably want to use is alternative paths, basically what you do is you repeat part of your use case like this:

In step 5, if there is not enough money on the account

  1. 5.a Show a message to the user
  2. 5.b User press "Try a lesser amount" button
  3. 5.c System goes to step 3
Edgar Sánchez
Hey that's what I want to do, it didn't occur to me, thanks
lisak
+1  A: 

You can add a constraints on any model element. This option add a graphical pink condition and also create a constraints directly in the metamodel (e.g the model xmi).

Hope this help.

alt text

This is what I wanted to get around. There is usually not enough space because these diagrams goes to documentation, and these constraints are doing the diagram very messy.
lisak
A: 

I found another menu in the usecase which is pretty much interesting.

These conditions/options are also exported in the project documentation as well as in the metamodel. You can add a parser on the xmi and query condition for example if you need automatic detection.

Hope this help alt text