aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Duplicate steps in Activity Diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Duplicate steps in Activity Diagram" Watch "Duplicate steps in Activity Diagram" New topic
Author

Duplicate steps in Activity Diagram

santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
I need to create an Activity Diagram for the following scenario:
There's a condition x and there are 3 steps a,b&c. The system checks if "x" succeeded or failed. a&b are available regardless of whether x was success or failure.step c is available only if x succeeded.
I'm really confused about this.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

What is confusing here?
a and b happen, then based on x, if x is succeeded then c else end.


Mohamed Sanaulla | My Blog
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
It is not a&b or c.
If x fails, only a&b.
If x succeeds, then a,b and c.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

What is common between the two? Steps a and b - so they occur no matter what the value of x is, but the step c is dependent on the value of x.
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 95
Nothing common between a &b.
C depends on the outcome of X.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

I was asking what is common between the two:

If x fails, only a&b.
If x succeeds, then a,b and c.

and not between Step a and b.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Duplicate steps in Activity Diagram