المكتبة التقنية ←

قبل إنشاء صفحة APEX، افهم احتياج العمل

English version

When starting an APEX system, I prefer to understand the business operation before generating forms. A good interface becomes much easier to build when ownership, states, and rules are clear.

For a leave request, map submission, manager review, HR checks, balance handling, and notification. Ask what happens when the manager changes, two approvals arrive together, or a request is withdrawn.

Turn the process into a model

Identify employees, request types, requests, and decision history. Define keys and relationships, then enforce suitable uniqueness, required values, and valid states with database constraints. Put reusable operations behind clear package interfaces such as leave_request_pkg.approve_request.

That operation should verify the caller's authority and the request's current state, protect against conflicting changes, and record the decision. Keep APEX processes focused on passing validated context and displaying outcomes.

Design evidence and ownership

Created and updated timestamps are useful, but they do not preserve a full change history. Record significant transitions with actor, time, previous state, new state, and reason.

If another system owns synchronized source records, treat those records as immutable. Store additional local business metadata in separate extension tables keyed to the source identifiers.

Editorial clarification: “database first” is a design preference, not a requirement to finish the entire schema before testing an interface. Iterate with users while preserving data ownership and integrity.

Include access rules, representative performance checks, and operational monitoring from the beginning. Oracle's APEX overview describes its database foundation; these design choices remain the application team's responsibility.

النسخة العربية

لما أبدأ نظام APEX، أفضل أفهم العملية التجارية قبل توليد الفورمز. بناء واجهة جيدة بيكون أسهل لما ملكية البيانات والحالات والقواعد تكون واضحة.

في طلب إجازة، ارسم التقديم، ومراجعة المدير، وفحص HR، والتعامل مع الرصيد، والإشعار. واسأل: إيه اللي يحصل لو المدير اتغير، أو موافقتان وصلوا مع بعض، أو الطلب اتسحب؟

حوّل العملية إلى نموذج بيانات

حدد الموظفين، وأنواع الطلبات، والطلبات، وسجل القرارات. عرّف المفاتيح والعلاقات، وطبّق القيود المناسبة لمنع التكرار، وفرض القيم المطلوبة، وتحديد الحالات الصحيحة. ضع العمليات القابلة لإعادة الاستخدام خلف واجهات Packages واضحة مثل leave_request_pkg.approve_request.

العملية لازم تتحقق من صلاحية المنفذ ومن حالة الطلب الحالية، وتحمي من تعارض التغييرات، وتسجل القرار. خَلّي APEX Processes تركز على تمرير السياق المتحقق منه وعرض النتيجة.

صمم التوثيق وملكية البيانات

توقيتات الإنشاء والتحديث مفيدة، لكنها لا تحفظ تاريخ التغييرات كاملًا. سجّل الانتقالات المهمة مع المنفذ، والوقت، والحالة السابقة، والحالة الجديدة، والسبب.

لو نظام آخر يملك سجلات المصدر المتزامنة، تعامل معها كبيانات غير قابلة للتعديل محليًا. ضع معلومات العمل المحلية الإضافية في Extension Tables منفصلة مرتبطة بمعرّفات المصدر.

توضيح تحريري: «Database First» تفضيل في التصميم، وليس شرطًا لإكمال كل الـSchema قبل تجربة الواجهة. طوّر بالتدريج مع المستخدمين مع الحفاظ على ملكية البيانات وسلامتها.

ضمّن قواعد الوصول، واختبارات أداء تمثل الاستخدام، ومراقبة التشغيل من البداية. نظرة Oracle العامة على APEX تشرح أساسه المعتمد على قاعدة البيانات؛ وتظل قرارات التصميم دي مسؤولية فريق التطبيق.