Skip to content

Commit c5cd84c

Browse files
xlorneclaude
andcommitted
docs: update documentation for title expression feature
- Expand TitleGroovyRequest documentation in backend CLAUDE.md with detailed field descriptions - Frontend CLAUDE.md already has complete Node Title Configuration section - Mark title-expression-ui design doc as implemented Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent af14c37 commit c5cd84c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ The workflow engine is organized into 8 layers:
144144

145145
8. **Script Layer** (`com.codingapi.flow.script.runtime`)
146146
- `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
147+
- `TitleGroovyRequest` - Context object for title expression scripts, providing access to:
148+
- Operator information: `operatorName`, `operatorId`, `isFlowManager`
149+
- Workflow information: `workflowTitle`, `workflowCode`, `nodeName`, `nodeType`
150+
- Creator information: `creatorName`
151+
- Form data: `formData` map with `getFormData(key)` method
152+
- Work code: `workCode`
148153
- Script types: OperatorMatchScript, OperatorLoadScript, NodeTitleScript, ConditionScript, RouterNodeScript, SubProcessScript, TriggerScript, ErrorTriggerScript, RejectActionScript, CustomScript
149154

150155
### Supporting Architectures

designs/title-expression-ui/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 标题表达式交互式UI设计
22

3+
> **Status**: ✅ Implemented (2025-02-26)
4+
> **Plan**: `docs/plans/2025-02-26-title-expression-ui.md`
5+
36
## 1. 需求概述
47

58
将节点标题表达式的配置从"直接编写Groovy脚本"改为"交互式可视化配置",同时保留高级用户直接编写脚本的能力。

0 commit comments

Comments
 (0)