Sie sind auf Seite 1von 15

Prepare Activity Model

ASSIGNMENT NO. 3

AIM: With respect to your selected Problem Statement or given System / Project. Identify
Activity states and Action states. Draw Activity diagram with Swim lanes using UML2.0

OBJECTIVES:-

1. To develop Business Process model.


2. To study how components of system are interacting in business processes..

THEORY:

Basic concepts :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 1


Prepare Activity Model

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 2


Prepare Activity Model

Contents :

Action state :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 3


Prepare Activity Model

Activity state :

Transitions :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 4


Prepare Activity Model

Fig.Triggerless Transition

Branching :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 5


Prepare Activity Model

Forks and Joins :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 6


Prepare Activity Model

Swimlanes : Swimlane is a kind of package.

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 7


Prepare Activity Model

Object flow :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 8


Prepare Activity Model

Common Modeling Techniques :

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 9


Prepare Activity Model

Fig.Modeling a workflow

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 10


Prepare Activity Model

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 11


Prepare Activity Model

Fig.Modeling an operation

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 12


Prepare Activity Model

Activity diagram elements :

Element Icon Description


Basic Section
Invocation The use of a behavior within an Activity.

Activity Edge An abstract class for directed connections between two Activity nodes.
Activity Sets of invocation nodes and activity edges in an Activity. A generic
Group grouping construct for nodes and edges.
Initial Node A control node at which flow starts when the Activity is invoked.

Activity Final The final node that stops all flows in an Activity.
Node
Flow Final The final node that terminates a flow and destroys all tokens that arrive at
it.
Control Section
Decision A control node that chooses between outgoing flows.
Vertical Fork A vertical control node that splits a flow into multiple concurrent flows.

Horizontal A horizontal control node that splits a flow into multiple concurrent flows.
Fork
Dependencies Section
Dependency The relationship between two elements whose definitions depend on one
another in such a way that changes to one can result in changes to the
other. For example, when one class mentions another as an operation
parameter, or as part of its data, the two classes exhibit dependency.
Realize A semantic relationship between classifiers. One classifier specifies a
contract that another classifier guarantees to carry out. These relationships
are used in two places: between interfaces and the classes that realize
them, and between use cases and the collaboration that realize them.
Usage A dependency in which one element (the client) requires the presence of
another element (the supplier) for its correct functioning or
implementation.
Permission A dependency that signifies granting of access rights from the supplier
model element to a client model element, in which the client requires
access to some or all of the constituent elements of the supplier.

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 13


Prepare Activity Model

Abstraction A boundary relative to the perspective of the viewer. The essential


characteristics of an entity that distinguish it from all other kinds of
entities.
Comments Section
Comment A Notepad notation. Use Comments to record information for an element
or link in a diagram. This information is not included in generated code
but is for information only. Each Comment can contain unlimited text, and
can be numbered. You can also define a stereotype, and enter a noted
element.
Link The connection between the comment element and the associated element.
Comment

Summary:-

 Activity diagrams are OO flowcharts:


— you use them to model all types of process;
— you can attach activity diagrams to any modeling element to capture its behavior;
— a good activity diagram communicates one specific aspect of a system’s behavior.
 Action states are a simplified form of a state that has a single entry action. They are:
— atomic;
— uninterruptible;
— instantaneous.
 The start state marks the beginning of the activity diagram.
 The stop state marks the end of the activity diagram.
 Subactivity states contain a complete activity graph. They are:
— non-atomic;
— interruptible;
— may take a finite amount of time.
 Transitions indicate the movement from one state to another – automatic transitions occur
as soon as a state has finished its work.
 Decisions allow you to model decision points:
— the main flow splits into two or more alternative paths;
— each path is protected by a Boolean guard expression;
— all guard expressions must be mutually exclusive;
 the keyword else indicates the path taken if none of the guard expressions evaluates to
true.
 Forks split a path into two or more concurrent flows – a fork has a single input transition
and two or more output transitions.
 Joins synchronize two or more concurrent flows:
— a join has one output transition and two or more input transitions;
— the output transition only occurs when all of the input transitions have occurred.
Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 14
Prepare Activity Model

 Swimlanes allow you to partition activity diagrams. You can choose your own semantics
for swimlanes. They may represent:
— organizational divisions;
— use cases;
— classes;
— processes;etc.

INPUT/OUTPUT:

INPUT: Problem Statement with SRS and Use Case Model of your system

OUTPUT: Business process model using activity diagram.

CONCLUSION:

Thus we have studied how to develop Business process model using acitivity diagram.

ORAL QUESTIONS:-

1. What is Mean by Activity?


2. What are different types of action nodes?
3. Explain different types of control nodes.
4. What is mean by Activity parameter ?
5. Explain pin in activity diagrams and its types ?
6. What is Expansion node?

Computer Laboratory- VIII PCCOE-IT-A.Y.2019-20 Page 15

Das könnte Ihnen auch gefallen