How awap-platform/ai-native-workflow-automation-platform works
AWAP is a multi-tenant, no-code workflow automation platform. Users model and publish processes in the visual designer, then start workflow instances that execute nodes, route work for tasks and approvals, and record outcomes. The frontend accesses the Java backend over REST; the backend also integrates with the Python Copilot service and event infrastructure. The AI layer’s capabilities are documented in the README, but its internal modules were not sampled in detail, so those internal links are omitted.
Main entry points: identity Backend API · frontend Web application · WorkflowEngineService.java Workflow engine · agent.py Copilot agent
Components 23
User experience
- Web application
frontend - Workflow designer
frontend/app/(app)/workflows/designer/page.tsx - Copilot interface
frontend/app/(app)/copilot/page.tsx
Workflow operations
- Workflow definitions
backend/identity/src/main/java/com/awap/workflow/application/BpmnXmlService.java - Workflow engine
backend/identity/src/main/java/com/awap/engine/application/WorkflowEngineService.java - Node execution
backend/identity/src/main/java/com/awap/engine/application/NodeExecutor.java - Saga recovery
backend/identity/src/main/java/com/awap/engine/application/SagaService.java - Event outbox
backend/identity/src/main/java/com/awap/engine/application/OutboxEventPublisher.java - Tasks and forms
backend/identity/src/main/java/com/awap/task/application/TaskService.java
Identity and platform
- Backend API
backend/identity - Authentication
backend/identity/src/main/java/com/awap/identity/application/AuthService.java - Tenant model
backend/identity/src/main/java/com/awap/identity/domain/Tenant.java - File handling
backend/identity/src/main/java/com/awap/file/application/FileService.java
AI Copilot
- Knowledge search
backend/common/src/main/java/com/awap/common/knowledge/KnowledgeSearchService.java - Copilot API
ai-layer/app/api/copilot.py - Copilot agent
ai-layer/app/copilot/agent.py - AI request models
ai-layer/app/copilot/models.py - AI service
ai-layer/app/main.py
Runtime services
- PostgreSQL
- Kafka
- MinIO storage
- OpenSearch
Other components
- Team member
Connections 22
- Team member → Web application: uses
README.md - Web application → Backend API: REST requests
README.md - Web application → Workflow designer: opens
README.md - Web application → Copilot interface: opens
README.md - Backend API → Authentication: authenticates
README.md - Backend API → Tenant model: scopes requests
README.md - Backend API → Workflow definitions: manages definitions
README.md - Backend API → Workflow engine: runs workflows
README.md - Workflow engine → Node execution: executes nodes
backend/identity/src/main/java/com/awap/engine/application/WorkflowEngineService.java - Backend API → Tasks and forms: routes work
README.md - Backend API → File handling: handles files
README.md - Backend API → Event outbox: publishes events
README.md - Event outbox → Kafka: delivers events
README.md - Workflow engine → Saga recovery: supports recovery
backend/identity/src/main/java/com/awap/engine/application/WorkflowEngineService.java - Backend API → PostgreSQL: stores tenant data
README.md - Backend API → MinIO storage: stores files
README.md - Backend API → AI service: calls Copilot
README.md - AI service → Copilot API: routes requests
ai-layer/app/main.py - Copilot API → Copilot agent: invokes agent
ai-layer/app/api/copilot.py - Copilot agent → AI request models: uses models
- Copilot agent → Knowledge search: searches knowledge
- Knowledge search → OpenSearch: indexes and searches
backend/common/src/main/java/com/awap/common/knowledge/KnowledgeSearchService.java