How mohamedalami236887/orchivademoproject works
Orchiva is a local internal request-and-document workflow: employees create and submit requests, role-scoped approvers process sequential tasks, and users can track documents, notifications, and audit history. Angular screens call a Spring REST API; application services enforce rules and PostgreSQL stores workflow and business metadata, with document bytes stored locally. The principal request-to-approval path and several service dependencies are visible in excerpts; broader product capabilities and storage boundaries are also documented in the README. Some unsampled subsystem links are therefore documented rather than source-verified.
Main entry points: app.routes.ts Application routes · WorkflowService.java Workflow service · DocumentService.java Document service · RequestService.java Request service
Components 24
Angular workspace
- Application routes
frontend/src/app/app.routes.ts - Sign-in
frontend/src/app/features/auth/login.component.ts - Request workspace
frontend/src/app/features/requests/request-list-v2.component.ts - Approval inbox
frontend/src/app/features/approvals/approval-inbox-v2.component.ts - Workflow Studio
frontend/src/app/features/workflows/workflow-admin.component.ts - Dashboard
frontend/src/app/features/dashboard/dashboard-v2.component.ts - Document library
frontend/src/app/features/documents/document-library-v2.component.ts - Audit explorer
frontend/src/app/features/audit/audit-v2.component.ts
Requests and approvals
- Request service
backend/src/main/java/com/orchiva/workflow/request/application/RequestService.java - Request metadata
backend/src/main/java/com/orchiva/workflow/request/repository/BusinessRequestRepository.java - Workflow service
backend/src/main/java/com/orchiva/workflow/workflow/application/WorkflowService.java - Workflow and task records
backend/src/main/java/com/orchiva/workflow/workflow/repository/WorkflowDefinitionRepository.java
Identity and administration
- Identity and access
backend/src/main/java/com/orchiva/workflow/identity/application/CurrentUserService.java - User administration
backend/src/main/java/com/orchiva/workflow/identity/application/UserAdministrationService.java - Dashboard queries
backend/src/main/java/com/orchiva/workflow/administration/application/DashboardService.java
Documents and traceability
- Document service
backend/src/main/java/com/orchiva/workflow/document/application/DocumentService.java - Document metadata
backend/src/main/java/com/orchiva/workflow/document/repository/DocumentRepository.java - Local file storage
backend/src/main/java/com/orchiva/workflow/document/storage/LocalDocumentStorage.java - Notifications
backend/src/main/java/com/orchiva/workflow/notification/application/NotificationService.java - Audit recording
backend/src/main/java/com/orchiva/workflow/audit/application/AuditService.java - Audit queries
backend/src/main/java/com/orchiva/workflow/audit/application/AuditQueryService.java - Audit events
backend/src/main/java/com/orchiva/workflow/audit/repository/AuditEventRepository.java
Other components
- Employee or approver
- PostgreSQL
Connections 35
- Employee or approver → Application routes: uses
README.md - Application routes → Sign-in: routes to
frontend/src/app/app.routes.ts - Application routes → Request workspace: routes to
frontend/src/app/app.routes.ts - Application routes → Approval inbox: routes to
frontend/src/app/app.routes.ts - Application routes → Workflow Studio: routes to
frontend/src/app/app.routes.ts - Application routes → Dashboard: routes to
frontend/src/app/app.routes.ts - Application routes → Document library: routes to
frontend/src/app/app.routes.ts - Application routes → Audit explorer: routes to
frontend/src/app/app.routes.ts - Request workspace → Request service: calls API
README.md - Approval inbox → Workflow service: calls API
README.md - Workflow Studio → Workflow service: calls API
README.md - Dashboard → Dashboard queries: calls API
README.md - Document library → Document service: calls API
README.md - Audit explorer → Audit queries: calls API
README.md - Request service → Request metadata: persists requests
backend/src/main/java/com/orchiva/workflow/request/application/RequestService.java - Request service → Workflow service: starts workflow
backend/src/main/java/com/orchiva/workflow/request/application/RequestService.java - Workflow service → Workflow and task records: loads and saves tasks
backend/src/main/java/com/orchiva/workflow/workflow/application/WorkflowService.java - Workflow service → Notifications: creates notifications
backend/src/main/java/com/orchiva/workflow/workflow/application/WorkflowService.java - Workflow service → Audit recording: records decisions
backend/src/main/java/com/orchiva/workflow/workflow/application/WorkflowService.java - Request service → Audit recording: records changes
backend/src/main/java/com/orchiva/workflow/request/application/RequestService.java - Document service → Local file storage: stores and resolves bytes
backend/src/main/java/com/orchiva/workflow/document/application/DocumentService.java - Document service → Document metadata: persists metadata
backend/src/main/java/com/orchiva/workflow/document/application/DocumentService.java - Document service → Request service: checks request access
backend/src/main/java/com/orchiva/workflow/document/application/DocumentService.java - Document service → Audit recording: records uploads
backend/src/main/java/com/orchiva/workflow/document/application/DocumentService.java - Audit recording → Audit events: saves events
backend/src/main/java/com/orchiva/workflow/audit/application/AuditService.java - Request metadata → PostgreSQL: stores metadata
README.md - Workflow and task records → PostgreSQL: stores workflow state
README.md - Document metadata → PostgreSQL: stores metadata
README.md - Audit events → PostgreSQL: stores history
README.md - Local file storage → Employee or approver: serves authorized files
README.md - Sign-in → Identity and access: authenticates
- Identity and access → User administration: supports account access
- Dashboard queries → PostgreSQL: queries operational state
README.md - Audit queries → Audit events: queries events
- Workflow service → Employee or approver: notifies approvers
backend/src/main/java/com/orchiva/workflow/workflow/application/WorkflowService.java