0
Tải bản đầy đủ (.pdf) (77 trang)

Khai báo và định nghĩa các lớp

Một phần của tài liệu KHẢO SÁT TÍNH HỢP LỆ CỦA MÔ HÌNH TIẾN TRÌNH NGHIỆP VỤ (Trang 43 -47 )

Các lớp được định nghĩa theo biểu đồ lớp đã chỉ ra ở mục 2.2

class BaseElement attributes

id : String -- thuộc tính để định danh các phần tử

operations end

class FlowElement < BaseElement attributes

name : String -- đặt tên cho các phần tử

operations end

class FlowElementContainer < BaseElement attributes

operations end

class Lane < BaseElement attributes

name : String

--tên cho Lane (thường là tên của role --mà nó thể hiện)

operations end

class FlowNode < FlowElement attributes

operations end

class SequenceFlow < FlowElement attributes

selected : Boolean

-- mang giá trị “true” nếu process instance --đi qua nó

operations end

class ConditionSequenceFlow < SequenceFlow attributes

condition : Boolean

-- mang giá trị “true” nếu điều kiện của nó

-- được thỏa mãn

operations end

class UnconditionSequenceFlow < SequenceFlow attributes

operations end

class Activity < FlowNode attributes

operations end

class Event < FlowNode attributes

operations end

class Gateway < FlowNode attributes

gatewayDirection : GatewayDirection -- chỉ ra tính chất phân kì hay hội tụ

operations end

class Process < FlowElementContainer attributes

operations end

class SubProcess < FlowElementContainer, Activity attributes isTransaction : Boolean triggeredByEvent : Boolean completionCondition : String operations end

class Task < Activity attributes

implementation : String

-- chỉ ra phương thức thực thi của Task operationRef: String

-- tên của operation được tham chiếu đến operations

end

class StartEvent < Event attributes

operations end

class IntermediateEvent < Event attributes

operations end

attributes operations end

class BoundaryEvent < IntermediateEvent attributes

operations end

class EndEvent < Event attributes

operations end

class InclusiveGateway < Gateway attributes

default : UnconditionSequenceFlow

-- chỉ ra SequenceFlow đóng vai trò default

operations end

class ExclusiveGateway < Gateway attributes

default : UnconditionSequenceFlow

-- chỉ ra SequenceFlow đóng vai trò default

operations end

class ParallelGateway < Gateway attributes

operations end

class ComplexGateway < Gateway attributes

-- điều kiện kết hợp các process instance của --Gateway

default : UnconditionSequenceFlow -- chỉ ra SequenceFlow đóng vai trò default

waitingForStart : Boolean activationCount : Integer operations

end

Một phần của tài liệu KHẢO SÁT TÍNH HỢP LỆ CỦA MÔ HÌNH TIẾN TRÌNH NGHIỆP VỤ (Trang 43 -47 )

×