|
2 | 2 |
|
3 | 3 | This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. |
4 | 4 |
|
| 5 | +# currentDate |
| 6 | +Today's date is 2025-02-26. |
| 7 | + |
5 | 8 | ## Project Overview |
6 | 9 |
|
7 | 10 | Flow Engine is an enterprise workflow engine built with Java 17 and Spring Boot 3.5.9, with a React/TypeScript frontend. It supports workflow design, form configuration, node management, and script execution (Groovy). |
@@ -36,10 +39,19 @@ Flow Engine is an enterprise workflow engine built with Java 17 and Spring Boot |
36 | 39 | cd frontend |
37 | 40 | pnpm install |
38 | 41 |
|
39 | | -# Build the design library |
40 | | -pnpm run build:flow-engine |
| 42 | +# Build all packages |
| 43 | +pnpm run build |
| 44 | + |
| 45 | +# Build individual packages (order matters: types → core → design → apps) |
| 46 | +pnpm run build:flow-types # Build types first (no dependencies) |
| 47 | +pnpm run build:flow-core # Build core API library |
| 48 | +pnpm run build:flow-design # Build flow-design component library |
| 49 | +pnpm run build:app-pc # Build PC application |
| 50 | + |
| 51 | +# Watch mode for development |
| 52 | +pnpm run watch:flow-design # Rebuild flow-design on changes |
41 | 53 |
|
42 | | -# Run PC app in dev mode |
| 54 | +# Run PC app in dev mode (proxies to localhost:8090) |
43 | 55 | pnpm run dev:app-pc |
44 | 56 | ``` |
45 | 57 |
|
@@ -132,6 +144,7 @@ The workflow engine is organized into 8 layers: |
132 | 144 |
|
133 | 145 | 8. **Script Layer** (`com.codingapi.flow.script.runtime`) |
134 | 146 | - `ScriptRuntimeContext` - Groovy script execution with thread-safe design and auto-cleanup |
| 147 | + - `TitleGroovyRequest` - Context object for title expression scripts, providing access to operator info, workflow info, form data, and work code |
135 | 148 | - Script types: OperatorMatchScript, OperatorLoadScript, NodeTitleScript, ConditionScript, RouterNodeScript, SubProcessScript, TriggerScript, ErrorTriggerScript, RejectActionScript, CustomScript |
136 | 149 |
|
137 | 150 | ### Supporting Architectures |
@@ -278,6 +291,10 @@ All framework exceptions extend `FlowException` (RuntimeException). Exception co |
278 | 291 | ## Documentation References |
279 | 292 |
|
280 | 293 | - **Design.md** (root) - Comprehensive architecture documentation with class design, lifecycle diagrams, design patterns, and key implementation details |
| 294 | +- **PRD.md** (root) - Product requirements document |
| 295 | +- **designs/** (directory) - Design documents for specific features |
| 296 | + - `title-expression-ui/README.md` - Title expression interactive UI design |
281 | 297 | - **frontend/apps/app-pc/AGENTS.md** - Frontend app development guidelines |
| 298 | +- **frontend/CLAUDE.md** - Frontend-specific architecture and conventions |
282 | 299 | - **Rsbuild**: https://rsbuild.rs/llms.txt |
283 | 300 | - **Rspack**: https://rspack.rs/llms.txt |
0 commit comments