ACTIVITY DIAGRAM Activity diagrams are suitable t shw the internal prcesses f a business system. Cntrary t activity diagrams f the external view, in activity diagrams f the internal view the relatinships t actrs are n lnger the fcal pint. Activity diagrams f the internal view are als suitable as a basis fr instructins. Reading Activity Diagrams The reading instructins in previus Activity Diagrams sectin, can be used fr activity diagrams f the internal view. Cnstructing Activity Diagrams Essentially, the cnstructin f activity diagrams f the internal view takes place exactly like the cnstructin f activity diagrams f the external view. The fllwing checklist and the explanatins f the individual steps are adapted t the mdified view. Checklist 3.11 Cnstructing Activity Diagrams in the Internal View Cllect infrmatin surces Hw am I suppsed t knw that? Find activities and actins Which activities have t be perfrmed s that the gds and services utilized by actrs can be prvided and delivered? Adpt actrs frm business use cases Wh is respnsible fr each actin? Cnnect actins In which rder are actins prcessed? Refine activities D any ther activity diagrams have t be added? Verify the view Is everything crrect?
Cllect Infrmatin Surces Hw am I Suppsed t Knw That? When cnstructing activity diagrams f the internal view, the same directins as in previuscnstructing Use Case Diagrams sectin, hld true in rder t btain the necessary infrmatin. Find Activities and Actins Which Activities Have t be Perfrmed s that the Gds and Services Utilized by Actrs can be Prvided and Delivered? Here, we can brrw frm use cases and actins f activity diagrams f the external view. We have t ask the fllwing questin fr the individual business prcesses that are depicted in the external view: Hw des the internal prcessing take place and what d the internal business prcesses lk like? Answering the fllwing questins will help yu find activities and actins: Which wrk steps have t be perfrmed by emplyees f the business system t prvide and deliver a service? What des each emplyee d? Which utside events initiate which activities and actins? Often, we can find pre-existing dcumentatin f flws, either infrmal r structured, that we can use t find activities. Adpt Actrs frm Business Use Cases Wh is Respnsible fr Each Actin?
Predminantly, wrkers and rganizatin units frm the package diagram are respnsible fr the actins. Actrs frm use case diagrams are als used, as lng as they are invlved in the depicted business prcesses. Each wrker, each rganizatin unit, and each actr is respnsible fr certain activities and is inserted int an activity partitin (swimlane) as the respnsible party. The individual actins are assigned t these respnsibilities. If activity diagrams are refined, it is pssible that ther areas f respnsibility will be added, fr example, individual psitins r teams. Cnnect Actins In Which Order are Actins Prcessed? Cnnecting the individual actins in a flw generates an initial activity diagram, which describes internal business prcesses. The fllwing questins help with the cnstructin f the cntrl flw: In which rder are actins prcessed? Which cnditins have t be met in rder fr an actin t be executed? Where are branches necessary? Which actins ccur simultaneusly? Is the cmpletin f sme actins necessary befre the flw can prceed t ther actins? Refine Activities D any Other Activity Diagrams Have t be Added? It is pssible that individual actins have t be further divided r refined with ther activity diagrams. Different scenaris are als described in ther activity diagrams.
Verify the View Is Everything Crrect? Activity diagrams f the internal view als have t be verified in terms f crrectness f cntent. This shuld be dne in cllabratin with knwledge carriers. Checklist 3.12 Verifying Activity Diagrams f the Internal View When cnstructing activity diagrams f the external view, always remember that nly internal prcedures and business prcesses are relevant. The cnditins f different utputs f a decisin nde shuld nt verlap. Otherwise, the cntrl flw is ambiguus it is nt clear where the flw prceeds after a decisin nde. The cnditins have t include all pssibilities. Otherwise, the cntrl flw can get stuck. In case f dubt, insert an utput with the cnditin 'else'. Frks and jins shuld be well balanced. The number f flws that leave a frk shuld match the number f flws that end in the crrespnding jin. In the fllwing Figure 3.40 depicts an activity diagram that represents the internal prcessing f the activities accepting luggage during check-in by passenger services: The activity accepting luggage, as shwn in Figure 3.40, is carried ut by passenger services. It is nt imprtant fr the passenger r fr baggage transprtatin which actins are perfrmed in what way. The passenger is nly interested in whether his r her carry-n is t big and if he r she has t pay fr excess weight; baggage transprtatin needs labels n each piece f luggage. All ther details that are shwn in the diagram are internal prcessing details f passenger services and will therefre be labelled as 'internal view'.
Figure 3.40 Activity diagram f the internal activity "Accepting Luggage"