Top Banner
Fork Activity Diagram Agenda Activity diagram ... [condition 1] Activity [condition 2] Activity [synchronization condition] Activity Activity Aris Tjahyanto. ADSI. 1 Activity Diagram Aris Tjahyanto. ADSI. 2 Syntax of Activity Diagrams Belongs to a UseCase Activity or action Activity_1 Illustrates business workflows Similar to the traditional flowchart (if no concurrent process) Used to : Understanding Work-Flow Analyzing UseCase (show the logic of a usecase) Dealing with Multi-Threading Aris Tjahyanto. ADSI. 3 Transition Branch/Decision point Synchronization bar Organi zationUnit_1 Join Swimlanes Aris Tjahyanto. ADSI. 4
23
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ADSI 4 3 Activity Diagram

Fork

Activity Diagram Agenda

Activity diagram

...[condition 1]

Activity

[condition 2]

Activity

Activity

[synchronizationcondition]

Activity

Activity

Aris Tjahyanto. ADSI. 1

Activity Diagram

Aris Tjahyanto. ADSI. 2

Syntax of Activity Diagrams

Belongs to a UseCase Activity or action Activity_1

Illustrates business workflows

Similar to the traditional flowchart (if noconcurrent process)

Used to :Understanding Work-Flow

Analyzing UseCase (show the logic of a usecase)

Dealing with Multi-Threading

Aris Tjahyanto. ADSI. 3

Transition

Branch/Decision point

Synchronization barOrgani zationUnit_1

Join

Swimlanes

Aris Tjahyanto. ADSI. 4

Page 2: ADSI 4 3 Activity Diagram

[pasif]

B

Activity Diagram Example Synchronization bar

Modeling concurrency

KuliahPilih action

[aktif]

[selesai]

Concurrent behavior means an object can domultiple things in parallel

Each separate path is called a thread

[tertarik] [tidak tertarik]Mencatat Bertanya Mendengarkan

Splitting Synchronization

perhatian mengantuk

A C

D

E

Aris Tjahyanto. ADSI. 5

Swim lanes

Aris Tjahyanto. ADSI. 6

Swimlanes Example

The activities of an activity diagram may beperformed by different groups.

DosenWali

MHS Administrasi

Each zone or lane represents the responsibilitiesof a particular group.

If swimlanes are used, each activity can belong toone and only one swimlane.

Aris Tjahyanto. ADSI. 7 Aris Tjahyanto. ADSI. 8

Page 3: ADSI 4 3 Activity Diagram

1.

2.

3.

4.

5.

6.

7.

CustomerIdentify

Movie

PlaceOrder

Swimlanes Example

Manager Walking Clerk

PlaceOrder

Exercises

FRS Online

Make an activity diagram forthe actor ‘MHS’.

PayCollectMoney

Fill

Order

Describe an usecase. Mengisi FRS Online

<<extend>>

MHS<<include>>

Mengambil SKS lebih

PickupMovie

DeliverMovie

Dosen Wali

Konsultasi FRS

<<extend>>

Aris Tjahyanto. ADSI. 9

Narrative use case specification

Aris Tjahyanto. ADSI. 10

Activity Diagram for MHSUse Case

Actors

Preconditions

Mengisi FRS Online

Mahasiswa

Mahasiswa sudah bayar SPP

Description FRS Online memerlukan NRP, kode kuliah, dankelas yang akan diambil

Mahasiswa memasukkan data tsb.

Extension point: SKS lebih dari jatah

M enam bah atau m em batal kan kul i ah

FRS Online memeriksa prasyarat dan menghitungtotal SKS yang diambil. Menampilkan pesan “SKSmelebihi jatah” bila pengambilan melebihi jatahyang telah ditentukan.

Dosen wali memberikan ACC

Bagian Administrasi mencetak bukti FRS

[prasya rat ti dak oke ][pra syarat oke]

Extension

Exceptions

Result

MHS mengambil bukti FRS

Pengambilan SKS > jatah SKS

3a. Bila kelebihan hanya 1 SKS, langsung diijinkan.

3b. Bila track record nilai bagus atau akan DO, diijinkan.

MHS tidak jadi mengisi FRS Online.

MHS mendapatkan bukti FRS dari bagian Administrasi.

Aris Tjahyanto. ADSI. 11

T am pi l pesan "prasya rat ti dak m em e nuhi "

[ACC]

Ce tak b ukti FRS

Konsul tasi deng an Do sen Wali

Aris Tjahyanto. ADSI. 12

Page 4: ADSI 4 3 Activity Diagram

* [

[

[

[

[

So far ...

Usecase diagram: describe functionality from the user’s perspective

Class diagram: modeling static structure

Sequence diagram: dynamic behavior of objects in time sequence.

Another Examples (1)

PrepareMeal

[ in the mood for wine]

Collaboration diagram: relationship among objects

Statechart diagram: model of business rules for a class

Activity diagram: illustrates businessworkflows for usecase

CookSpaghetti

Combine

MakeSauce

OpenBottleWine

Package diagram: ??

Deployment diagram: ??

Aris Tjahyanto. ADSI. 13

Another Examples (2)[New System]

Analyse the Problem

Serve

[Existing System]

Understand Staheolder Needs

Aris Tjahyanto. ADSI. 14

Another Examples[New Input] (3)

Manage Changing Requirements

Receive Order [Incorrect problem] [Understand Stakeholder Needs]

[Can't do all the work]

for each line item] /

Define the System Manage Scope of the System

Assign Goods to itemfailed] [ More Iterations]

[Work in scope]

need to order]

Authorize Payment

succeeded]

Cancel Order

[Requirements Definition Complete]

Refine the System Definition

Reorder Goodsstock assigned to all items and payment authorized]

Dispatch Order

Aris Tjahyanto. ADSI. 15 Aris Tjahyanto. ADSI. 16

Page 5: ADSI 4 3 Activity Diagram

Exercises

Develop an activity diagram based on the followingnarrative. Note any ambiguities or questions that you have asyou develop the model. If you need to make assumptions,also note them. “The purpose of the open Access InsuranceSystem is to provide automotive insurance to car owners.Initially, prospective customers fill out an insuranceapplication, which provides information about the customerand his or her vehicles. This information is sent to an agent,who sends it to various insurance companies to get quotesfor insurance. When the responses return, the agent thendetermines the best policy for the type and level of coveragedesired and gives the customer a copy of the insurancepolicy proposal and quote.”

Aris Tjahyanto. ADSI. 17

References

Alan Dennis, Systems Analysis and Design withUML Version 2.0, 2004

Aris Tjahyanto. ADSI. 18

Page 6: ADSI 4 3 Activity Diagram

Activity Diagram

Aris Tjahyanto. ADSI. 1

Page 7: ADSI 4 3 Activity Diagram

Agenda

Activity diagram

...[condition 1]

Activity

[condition 2]

Activity

Activity

Activity

[synchronizationcondition]

Activity

Aris Tjahyanto. ADSI. 2

Page 8: ADSI 4 3 Activity Diagram

Activity Diagram

Belongs to a UseCase

Illustrates business workflows

Similar to the traditional flowchart (if noconcurrent process)

Used to :Understanding Work-Flow

Analyzing UseCase (show the logic of a usecase)

Dealing with Multi-Threading

Aris Tjahyanto. ADSI. 3

Page 9: ADSI 4 3 Activity Diagram

Syntax of Activity Diagrams

Activity or action

Transition

Branch/Decision point

Synchronization bar

Activity_1

Fork OrganizationUnit_1

Join

Swimlanes

Aris Tjahyanto. ADSI. 4

Page 10: ADSI 4 3 Activity Diagram

Activity Diagram Example

[selesai]

Kuliah Pilih action

[aktif]

[pasif]

[tertarik] [tidak tertarik]Mencatat Bertanya Mendengarkan

perhatian mengantuk

Aris Tjahyanto. ADSI. 5

Page 11: ADSI 4 3 Activity Diagram

Synchronization bar

Modeling concurrency

Concurrent behavior means an object can domultiple things in parallel

Each separate path is called a thread

Splitting

B

Synchronization

A C E

D

Aris Tjahyanto. ADSI. 6

Page 12: ADSI 4 3 Activity Diagram

Swim lanes

The activities of an activity diagram may beperformed by different groups.

Each zone or lane represents the responsibilitiesof a particular group.

If swimlanes are used, each activity can belong toone and only one swimlane.

Aris Tjahyanto. ADSI. 7

Page 13: ADSI 4 3 Activity Diagram

Swimlanes Example

Dosen MHS Administrasi

Wali

Aris Tjahyanto. ADSI. 8

Page 14: ADSI 4 3 Activity Diagram

Swimlanes Example

Customer Manager Walking ClerkIdentify

Movie

PlaceOrder

PlaceOrder

Pay

PickupMovie

CollectMoney

DeliverMovie

FillOrder

Aris Tjahyanto. ADSI. 9

Page 15: ADSI 4 3 Activity Diagram

Exercises

FRS Online

Make an activity diagram forthe actor ‘MHS’.

Describe an usecase. Mengisi FRS Online

<<extend>>

MHS<<include>>

Mengambil SKS lebih

<<extend>>

Konsultasi FRS

Dosen Wali

Aris Tjahyanto. ADSI. 10

Page 16: ADSI 4 3 Activity Diagram

1.

2.

3.

4.

5.

6.

7.

Narrative use case specificationUse Case

Actors

Preconditions

Description

Extension

Exceptions

Result

Mengisi FRS Online

Mahasiswa

Mahasiswa sudah bayar SPP

FRS Online memerlukan NRP, kode kuliah, dankelas yang akan diambil

Mahasiswa memasukkan data tsb.

Extension point: SKS lebih dari jatah

FRS Online memeriksa prasyarat dan menghitungtotal SKS yang diambil. Menampilkan pesan “SKSmelebihi jatah” bila pengambilan melebihi jatahyang telah ditentukan.

Dosen wali memberikan ACC

Bagian Administrasi mencetak bukti FRS

MHS mengambil bukti FRS

Pengambilan SKS > jatah SKS

3a. Bila kelebihan hanya 1 SKS, langsung diijinkan.

3b. Bila track record nilai bagus atau akan DO, diijinkan.

MHS tidak jadi mengisi FRS Online.

MHS mendapatkan bukti FRS dari bagian Administrasi.

Aris Tjahyanto. ADSI. 11

Page 17: ADSI 4 3 Activity Diagram

[ACC]

Activity Diagram for MHS

Menambah atau membatalkan kuliah

[prasyarat tidak oke]

Tampil pesan "prasyarat tidak memenuhi"

Cetak bukti FRS

[prasyarat oke]

Konsultasi dengan Dosen Wali

Aris Tjahyanto. ADSI. 12

Page 18: ADSI 4 3 Activity Diagram

So far ...

Usecase diagram: describe functionality from the user’s perspective

Class diagram: modeling static structure

Sequence diagram: dynamic behavior of objects in time sequence.

Collaboration diagram: relationship among objects

Statechart diagram: model of business rules for a class

Activity diagram: illustrates businessworkflows for usecase

Package diagram: ??

Deployment diagram: ??

Aris Tjahyanto. ADSI. 13

Page 19: ADSI 4 3 Activity Diagram

Another Examples (1)

PrepareMeal

[ in the mood for wine]

CookSpaghetti MakeSauce

OpenBottleWine

Combine

Serve

Aris Tjahyanto. ADSI. 14

Page 20: ADSI 4 3 Activity Diagram

* [

[

[

[

[

Another Examples (2)

Receive Order

for each line item] /

Assign Goods to item

need to order]

Authorize Payment

succeeded]

failed]Cancel Order

Reorder Goodsstock assigned to all items and payment authorized]

Dispatch Order

Aris Tjahyanto. ADSI. 15

Page 21: ADSI 4 3 Activity Diagram

Another Examples[New Input] (3)

[New System]

Analyse the Problem

[Incorrect problem]

[Existing System]

Understand Staheolder Needs

[Understand Stakeholder Needs]

Manage Changing Requirements

[Can't do all the work]

[ More Iterations]

Define the System Manage Scope of the System

[Work in scope]

Refine the System Definition

[Requirements Definition Complete]

Aris Tjahyanto. ADSI. 16

Page 22: ADSI 4 3 Activity Diagram

Exercises

Develop an activity diagram based on the followingnarrative. Note any ambiguities or questions that you have asyou develop the model. If you need to make assumptions,also note them. “The purpose of the open Access InsuranceSystem is to provide automotive insurance to car owners.Initially, prospective customers fill out an insuranceapplication, which provides information about the customerand his or her vehicles. This information is sent to an agent,who sends it to various insurance companies to get quotesfor insurance. When the responses return, the agent thendetermines the best policy for the type and level of coveragedesired and gives the customer a copy of the insurancepolicy proposal and quote.”

Aris Tjahyanto. ADSI. 17

Page 23: ADSI 4 3 Activity Diagram

References

Alan Dennis, Systems Analysis and Design withUML Version 2.0, 2004

Aris Tjahyanto. ADSI. 18