Analysis: Logical Modeling II التحليل: النمذجة المنطقية 2 (Logical Modeling II)
Moving beyond data flow to modeling system behavior and business workflows. Use Cases, Activity Diagrams, and BPMN. الانتقال لما هو أبعد من تدفق البيانات لنمذجة سلوك النظام وسير العمل التجاري. حالات الاستخدام (Use Cases)، مخططات النشاط (Activity Diagrams)، و BPMN.
Use Case Modeling نمذجة حالات الاستخدام (Use Case Modeling)
Use case modeling captures the functional requirements of a system by describing interactions between external entities and the system itself. تجسد نمذجة حالات الاستخدام (Use Case Modeling) المتطلبات الوظيفية للنظام من خلال وصف التفاعلات بين الكيانات الخارجية والنظام نفسه.
Core Components المكونات الأساسية (Core Components)
- Actor: External entity (user/system) that interacts with the system. Actor (الفاعل): كيان خارجي (مستخدم/نظام) يتفاعل مع النظام.
- Use Case: A specific goal/task the system performs for the actor. Use Case: هدف أو مهمة محددة ينفذها النظام من أجل الـ Actor.
- Relationship: Connections like Association, Include, or Extend. Relationship (العلاقة): الروابط مثل Association، Include، أو Extend.
Key Characteristics الخصائص الرئيسية
- • Although associated with Object-Oriented Analysis (OOAD), it works for traditional approaches too. • رغم ارتباطها بالـ Object-Oriented Analysis (OOAD)، فهي تعمل مع الأساليب التقليدية أيضاً.
- • It is an iterative process. Start high-level, then refine. • هي عملية تكرارية (Iterative). تبدأ بمستوى عالٍ، ثم يتم التنقيح.
- • Focuses on What the system does, not How. • تركز على ماذا (What) يفعل النظام، وليس الكيفية.
Activity Diagrams مخططات النشاط (Activity Diagrams)
Modeling Logic & Flow نمذجة المنطق والتدفق
Activity Diagrams show the conditional logic for the sequence of system activities needed to accomplish a business process. They are similar to flowcharts but can model parallel behavior. تُظهر الـ Activity Diagrams المنطق الشرطي لتسلسل أنشطة النظام اللازمة لإنجاز عملية تجارية. هي مشابهة للـ Flowcharts لكن يمكنها نمذجة السلوك المتوازي.
Gateways (Logic Control) Gateways (التحكم بالمنطق)
Gateways control the divergence and convergence of sequence flows. تتحكم الـ Gateways في تفرع وتلاقي تدفقات التسلسل.
Decision Point. Only ONE path can be taken based on a condition (e.g., "a" vs "b" vs "c"). If "a" is true, do Activity A. If "b", do B. نقطة قرار. يتم اتخاذ مسار واحد فقط بناءً على شرط (مثلاً "أ" مقابل "ب"). إذا تحقق "أ"، نفذ النشاط A.
Fork/Join. ALL outgoing paths are followed in parallel. Activities happen simultaneously. They must all finish before merging back. Fork/Join (التفرع/الدمج). يتم اتباع كل المسارات الخارجة بالتوازي. تحدث الأنشطة في وقت واحد. يجب أن تنتهي جميعها قبل الدمج مرة أخرى.
Business Process Modeling نمذجة العمليات التجارية
BPMN (Business Process Model & Notation) BPMN (Business Process Model & Notation)
A standard graphical representation for specifying business processes in a business process model. It provides a notation that is easily understandable by all business stakeholders (analysts, developers, and managers). تمثيل رسومي قياسي لتحديد العمليات التجارية في نموذج العمليات. يوفر رموزاً (Notation) سهلة الفهم لجميع أصحاب المصلحة (المحللين، المطورين، والمدراء).
The Exam Vault The Exam Vault (خزنة الاختبارات)
Professor's Secrets & Trap Avoidance أسرار البروفيسور وتجنب الفخاخ
TRAP: XOR vs AND Gateways TRAP: XOR vs AND Gateways
In Activity Diagrams:
XOR (Diamond with 'X' or empty): Only ONE path is chosen (Decision).
AND (Diamond with '+'): ALL paths are chosen (Parallel/Fork).
Confusing these is the most common exam mistake.
في الـ Activity Diagrams:
XOR (معين بداخله 'X' أو فارغ): يتم اختيار مسار واحد فقط (قرار).
AND (معين بداخله '+'): يتم اختيار كل المسارات (توازي/Fork).
الخلط بينهما هو الخطأ الأكثر شيوعاً في الاختبارات.
TRAP: Use Case vs Activity TRAP: Use Case vs Activity
Use Case Diagram: Static view of functionality (Who does what?). Activity Diagram: Dynamic view of the flow (In what order?). Do not try to show "order of steps" inside a standard Use Case Diagram. Use Case Diagram: نظرة ثابتة للوظائف (من يفعل ماذا؟). Activity Diagram: نظرة ديناميكية للتدفق (بأي ترتيب؟). لا تحاول إظهار "ترتيب الخطوات" داخل مخطط حالة الاستخدام القياسي.
SECRET: Merge vs Join SECRET: Merge vs Join
Merge (XOR): Bringing alternative paths back together. The process continues when any one path arrives. Join (AND): Bringing parallel paths back together. The process waits until all paths arrive before continuing. Merge (XOR): إعادة تجميع المسارات البديلة. تستمر العملية عند وصول أي مسار واحد. Join (AND): إعادة تجميع المسارات المتوازية. تنتظر العملية حتى وصول جميع المسارات قبل المتابعة.
KEY CONCEPT: Swimlanes KEY CONCEPT: Swimlanes
Activity Diagrams often use Swimlanes (vertical or horizontal partitions) to show who (which actor or department) performs which activity. This adds a dimension of responsibility to the flow. غالباً ما تستخدم الـ Activity Diagrams الـ Swimlanes (المسارات) (أقسام رأسية أو أفقية) لإظهار من (أي فاعل أو قسم) يقوم بأي نشاط. هذا يضيف بعداً للمسؤولية إلى التدفق.