Common Business Scenarios
Struktural's architecture is highly versatile. Below are examples of how its core features combine to solve complex, real-world enterprise problems.
Scenario A: Enterprise Resource Planning (ERP) Modules
The Challenge: ERP systems require complex relational data integrity, strict transactional boundaries, and heavy computational logic (e.g., inventory deduction, tax calculation). The Struktural Solution:
- Relational Integrity: Struktural's Entity Engine enforces strict Foreign Key constraints and cascading deletes directly at the SQL level, ensuring financial records are never orphaned.
- Scripting for Transactions: Developers can write
BeforeCreateC# scripts on anOrderLineentity. This script can query theInventorytable, verify stock, deduct the quantity, and calculate taxes within a single, atomic database transaction. If stock is insufficient, the script aborts the transaction usingAddError(), safely rolling back all changes and notifying the user. - Automated Billing: Scheduled Workflows can run nightly, querying all unbilled, delivered orders and automatically generating
Invoicerecords.
Scenario B: Customer Relationship Management (CRM)
The Challenge: CRMs demand rapid UI adaptations, robust external integrations (emailing, payment gateways), and strict data visibility rules (sales reps should only see their own leads). The Struktural Solution:
- View Scaffolding: Business analysts can use the Studio to instantly generate Grids, Forms, and Kanban-style Card views for
LeadandOpportunityentities. - External APIs: Using the External Services module, developers can import Stripe's OpenAPI specification. A Custom Action button labeled "Process Payment" can execute a C# script that seamlessly calls the Stripe API via the injected
Servicescontainer. - Row-Level Security (RLS): By configuring a dynamic
Struktural_Sys_Profile, the platform automatically intercepts all database queries. A rule such asOwnerId == CurrentUser.Idensures that a sales representative physically cannot query or access leads belonging to other representatives, regardless of how they access the system (UI or API).
Scenario C: Document Management & Compliance Systems
The Challenge: Legal or compliance systems require storing highly sensitive files, enforcing rigid access hierarchies, and maintaining non-tamperable audit logs. The Struktural Solution:
- Secure File Storage: Entities can utilize
SecureFilefields. When files are uploaded, they are seamlessly streamed to an external Blob Storage (e.g., Azure or AWS S3). The system handles secure, time-bound, and single-use download links to prevent unauthorized sharing. - Hierarchical Security: Utilizing the
SecurityInheritanceconfiguration, permissions can cascade. If a user is granted access to aLegalCaseentity, Struktural automatically materializes that access down to allDocumententities associated with that case, calculating the Access Control List (ACL) in the background. - WORM Compliance (Write Once, Read Many): By toggling
IsAudited: trueon an entity, Struktural automatically generates a shadow Audit table. Every insert, update, or soft-delete is logged with a JSON snapshot of the changes, the timestamp, and the exact user identity, providing a cryptographically sound history of the data lifecycle.