Skip to content

Commit 16a2247

Browse files
authored
Merge pull request #17 from codingapi/dev
Dev
2 parents 82e0011 + 0dce1ff commit 16a2247

176 files changed

Lines changed: 7237 additions & 841 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ build/
3131

3232
### VS Code ###
3333
.vscode/
34+
*.db
3435

35-
*.db
36+
### macOS ###
37+
.DS_Store

AGENTS.md

Lines changed: 0 additions & 238 deletions
This file was deleted.

CLAUDE.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,16 @@ Note: `app-mobile`, `flow-pc`, and `flow-mobile` are planned but not yet impleme
6464
The workflow engine is organized into 8 layers:
6565

6666
1. **Workflow Layer** (`com.codingapi.flow.workflow`)
67-
- `Workflow` - Top-level container with nodes, edges, form definition
67+
- `Workflow` - Top-level container with nodes, form definition
6868
- `WorkflowBuilder` - Builder pattern for workflow construction
6969

7070
2. **Node Layer** (`com.codingapi.flow.node`)
71-
- `IFlowNode` - Interface defining node lifecycle methods
72-
- `BaseFlowNode` - Abstract base for all nodes, manages actions and strategies
71+
- `IFlowNode` - Interface defining node lifecycle methods, includes `blocks()` method for child nodes
72+
- `BaseFlowNode` - Abstract base for all nodes, manages actions, strategies, and blocks
7373
- `BaseAuditNode` - Abstract base for audit nodes (ApprovalNode, HandleNode)
74-
- 12 node types: StartNode, EndNode, ApprovalNode, HandleNode, NotifyNode, ConditionBranchNode, ParallelBranchNode, RouterNode, InclusiveBranchNode, SubProcessNode, DelayNode, TriggerNode
74+
- 15 node types: StartNode, EndNode, ApprovalNode, HandleNode, NotifyNode, ConditionBranchNode, ParallelBranchNode, RouterNode, InclusiveBranchNode, SubProcessNode, DelayNode, TriggerNode, ConditionNode, ParallelNode, InclusiveNode
75+
- **Block nodes** (containers with child blocks): ConditionNode, ParallelNode, InclusiveNode
76+
- **Branch nodes** (child nodes in blocks): ConditionBranchNode, ParallelBranchNode, InclusiveBranchNode
7577

7678
3. **Action Layer** (`com.codingapi.flow.action`, `com.codingapi.flow.action.actions`)
7779
- `IFlowAction` - Interface for node actions with `copy()` method
@@ -109,7 +111,7 @@ The workflow engine is organized into 8 layers:
109111
- **Repository Pattern** (`com.codingapi.flow.repository`) - Abstraction for data persistence, isolates framework from implementation. Implementations are in `flow-engine-starter-infra`. Access via `RepositoryHolderContext` singleton.
110112
- **Gateway Pattern** (`com.codingapi.flow.gateway`) - Anti-corruption layer for external system integration (operators, users). Access via `GatewayContext` singleton.
111113
- **Domain Objects** (`com.codingapi.flow.domain`) - DelayTask, DelayTaskManager, UrgeInterval
112-
- **Edge System** (`com.codingapi.flow.edge`) - FlowEdge for node connections
114+
- **Node State System** (`com.codingapi.flow.manager`) - FlowNodeState for node classification (block nodes vs branch nodes), FlowNodeEdgeManager for traversing node relationships via blocks
113115
- **Event System** (`com.codingapi.flow.event`) - 5 event types: FlowRecordStartEvent, FlowRecordTodoEvent, FlowRecordDoneEvent, FlowRecordFinishEvent, FlowRecordUrgeEvent
114116
- **Backup System** (`com.codingapi.flow.backup`) - WorkflowBackup for workflow versioning
115117

0 commit comments

Comments
 (0)