Must know something of everything and everything of something!

Activity Diagrams

上一篇 / 下一篇  2007-03-30 15:29:51 / 个人分类:Testing

Activity Diagrams51Testing软件测试网-l+O o+Nxvlw

c;`c\4BNh_)v0Activity diagrams describe the workflow behavīor of a system.  Activity diagrams are similar tostate diagramsbecause activities are the state of doing something.  The diagrams describe the state of activities by showing the sequence of activities performed.  Activity diagrams can show activities that are conditional or parallel.51Testing软件测试网c,Z\_i2po7w2N

When to Use: Activity Diagrams

V*u+Zrq0Activity diagrams should be used in conjunction with other modeling techniques such asinteraction diagramsandstate diagrams.  The main reason to use activity diagrams is to model the workflow behind the system being designed.  Activity Diagrams are also useful for: analyzing a use case by describing what actions need to take place and when they should occur;  describing a complicated sequential algorithm;  and modeling applications with parallel processes.1

"C.Ep1Eiv w [!i)O051Testing软件测试网Z fgZE8ivaz}-h

However, activity diagrams should not take the place of interaction diagramsandstate diagrams.  Activity diagrams do not give detail about how objects behave or how objects collaborate. 151Testing软件测试网8NDW CJ)JG6w

How to Draw: Activity Diagrams

4A;kLiCy4X'u0Activity diagrams show the flow of activities through the system.  Diagrams are read from top to bottom and have branches and forks to describe conditions and parallel activities.  A fork is used when multiple activities are occurring at the same time.  The diagram below shows a fork after activity1.  This indicates that both activity2 and activity3 are occurring at the same time.  After activity2 there is a branch.  The branch describes what activities will take place based on a set of conditions.  All branches at some point are followed by a merge to indicate the end of the conditional behavīor started by that branch.   After the merge all of the parallel activities must be combined by a join before transitioning into the final activity state.   51Testing软件测试网/{7L6FlyF,m3D

*haF2T#a aw}0

)A!Q|x4eH,r2qU5a0

UNl/A$@?'|!Y*r0Below is a possible activity diagram for processing an order.  The diagram shows the flow of actions in the system's workflow.  Once the order is received the activities split into two parallel sets of activities.  One side fills and sends the order while the other handles the billing.  On the Fill Order side, the method of delivery is decided conditionally.  Depending on the condition either the Overnight Delivery activity or the Regular Delivery activity is performed.  Finally the parallel activities combine to close the order.  

_-vr Cgj9AD0
51Testing软件测试网t#y/bz'_A|A

51Testing软件测试网-q @ vl]


相关阅读:

TAG: UML

 

评分:0

我来说两句

日历

« 2024-03-10  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 76290
  • 日志数: 93
  • 建立时间: 2007-03-22
  • 更新时间: 2007-12-31

RSS订阅

Open Toolbar