UML Activity diagram: decision branch ends whole activity -


I was wondering if there is an activity on which there is a decision; One of the branches ends with a complete activity, it will be similar to a substrin, when a condition is fulfilled, the control over the inhocole comes back.

  Sub Activity () {... ... if (condition) {...} else {Return; // It eliminates branch activity} ...}  

thanks,

Carlos

The following code will look like the picture below.

  if (D1) {if (D2) {return; }} And {return; } / \ / \ O ___ / D1 \ __ T ____ / D2 \ ___________ \ / \ / | \ / \ / | | ____ F __________________ |  

Note, in this case, D2: Wrongly not anywhere, in both diagrams and codes. I was just trying to describe the points that move on to the end of the activity. (Note: '0' is the end of the activity and 'o' is the beginning)


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -