SFI Super App
Enterprise Platform · 2025
Context
Enterprise Super App for Supply Chain & Finance Management. As IT Architect and Architecture Lead, designed and led multi-team development of this flagship system handling complete import/trade operations from China to Indonesia.
Problem
Import and trade operations were fragmented across manual processes and disconnected systems. Coordination between China suppliers, local operations, finance, and customers was inefficient and error-prone.
Constraints
- Multi-Role Access — 6 distinct user roles with different permissions
- Complex Workflows — 13 workflow types with sub-workflow support
- Multi-Currency — CNY, IDR, USD with real-time rate conversion
- External Integrations — DHL API, LDAP, SWIFT MT940 Banking
- Audit Requirements — Full transaction logging for compliance
System Architecture
Designed as a 6-layer architecture with clear separation of concerns, supporting 68 controllers, 94 models, and 370+ routes.
Key Architectural Decisions
1. State Machine for PO Lifecycle
The Purchase Order module uses a 12-state state machine managing the complete lifecycle from draft to completion. Every state transition is validated, logged, and reversible—preventing data inconsistencies and providing clear audit trails.
2. Workflow Orchestration Engine
Custom-built workflow engine orchestrating 13 workflow types with parent-child relationships. Sub-workflows trigger automatically and parent workflows wait for all children to complete. All state changes wrapped in DB::transaction.
3. Multi-Currency Financial Processing
Central AccountStatementFinanceService handles all financial flows—outbound payments to China (CNY), local payments in Indonesia (IDR), and inbound customer payments. Automatic exchange rate calculation with full audit trail.
4. Security by Design
AES-256-CBC and RSA-2048 encryption for sensitive data. OAuth2 for external API integration. IP whitelisting and 24-hour token TTL for access control.
Tech Stack
Laravel 11 (Backend), Bootstrap 5 + Vuexy (Frontend), PostgreSQL/MySQL, Redis, DHL Financial API, LDAP, SWIFT MT940, Linux, Nginx.
Outcome
- Unified fragmented import/trade operations into single platform
- Reduced manual coordination between China, operations, and finance
- Full audit trail for regulatory compliance
- Architecture used as baseline for future enterprise modules
What I'd Improve Next
Would add event-driven communication between modules. Consider CQRS for complex reporting requirements.