118 lines
3.8 KiB
YAML
118 lines
3.8 KiB
YAML
schema:
|
||
name: domainmap.rules.index
|
||
version: "1.0"
|
||
level: D1
|
||
note: 规则集索引与状态机取值;校验/计算/流转的完整条件需升级 D2+
|
||
|
||
count: 12
|
||
ruleSets:
|
||
- id: R01-user-story-status
|
||
name: 用户故事状态机
|
||
type: transition
|
||
source: enums/UserStoryEnums.java
|
||
values:
|
||
- { code: reviewing, label: 待评审, order: 0 }
|
||
- { code: draft, label: 草稿, order: 1 }
|
||
- { code: active, label: 激活, order: 2 }
|
||
- { code: unconfirmed, label: 需求明确中, order: 3 }
|
||
- { code: waitcommunicate, label: 待沟通, order: 4 }
|
||
- { code: waitdesign, label: 需求待设计, order: 5 }
|
||
- { code: designdoing, label: 详细设计中, order: 6 }
|
||
- { code: designdone, label: 产品已设计, order: 7 }
|
||
- { code: storyunconfirmed, label: 需求待确认, order: 8 }
|
||
- { code: confirmed, label: 需求已确认, order: 9 }
|
||
- { code: developing, label: 研发中, order: 10 }
|
||
- { code: finished, label: 已完成, order: 11 }
|
||
- { code: closed, label: 已关闭, order: 12 }
|
||
- { code: released, label: 已发布, order: 15 }
|
||
note: order 13/14 缺号(代码留空),released=15 为终态
|
||
|
||
- id: R02-story-status
|
||
name: 需求状态(简版)
|
||
type: transition
|
||
source: enums/StoryStatusEnums.java
|
||
values:
|
||
- { code: draft, label: 草稿 }
|
||
- { code: finished, label: 完成 }
|
||
- { code: closed, label: 已关闭 }
|
||
|
||
- id: R03-story-stage
|
||
name: 需求阶段(禅道 stage)
|
||
type: transition
|
||
source: enums/StoryStageEnums.java
|
||
|
||
- id: R04-task-status
|
||
name: 任务状态机
|
||
type: transition
|
||
source: enums/TaskStatus.java
|
||
values:
|
||
- { code: wait, label: 准备好 }
|
||
- { code: doing, label: 进行中 }
|
||
- { code: pause, label: 暂停 }
|
||
- { code: reviewing, label: 待评审 }
|
||
- { code: done, label: 完成 }
|
||
- { code: cancel, label: 取消 }
|
||
- { code: closed, label: 关闭 }
|
||
|
||
- id: R05-task-type
|
||
name: 任务类型枚举
|
||
type: validation
|
||
source: enums/TaskType.java
|
||
values:
|
||
- { code: design, label: 设计 }
|
||
- { code: devel, label: 开发 }
|
||
- { code: request, label: 需求 }
|
||
- { code: test, label: 测试 }
|
||
- { code: study, label: 研究 }
|
||
- { code: discuss, label: 讨论 }
|
||
- { code: ui, label: 界面 }
|
||
- { code: affair, label: 事务 }
|
||
- { code: misc, label: 其他 }
|
||
|
||
- id: R06-bug-type
|
||
name: 缺陷类型
|
||
type: validation
|
||
source: enums/BugTypeEnums.java
|
||
values:
|
||
- { code: "1", label: dev, 说明: 开发缺陷 }
|
||
- { code: "2", label: prod, 说明: 生产缺陷 }
|
||
- { code: "3", label: releaseBug, 说明: 发布缺陷 }
|
||
|
||
- id: R07-action-type-status
|
||
name: 操作日志类型与状态
|
||
type: transition
|
||
source: enums/ActionType.java, ActionStatus.java
|
||
note: 禅道 zt_action 历史记录体系
|
||
|
||
- id: R08-kanban-structure
|
||
name: 看板结构约束
|
||
type: validation
|
||
source: enums/KanbanCellType.java, KanbanColumnType.java
|
||
note: space/region/group/lane/column/cell/card 层级与列/单元格类型约束
|
||
|
||
- id: R09-menu-level
|
||
name: 菜单层级
|
||
type: validation
|
||
source: enums/BaseMenuLevelEnum.java
|
||
|
||
- id: R10-delete-flag
|
||
name: 逻辑删除标记
|
||
type: validation
|
||
source: enums/DeleteFlagEnum.java
|
||
|
||
- id: R11-product-story-bug-flag
|
||
name: 产品-需求/bug 关联标记
|
||
type: validation
|
||
source: enums/ProductBug.java, ProductStoryStatus.java
|
||
|
||
- id: R12-user-type
|
||
name: 用户类型
|
||
type: validation
|
||
source: enums/UserType.java
|
||
|
||
pendingExtraction:
|
||
- 绩效计算公式(service/perf)→ rules/calculation/
|
||
- 月评分规则 → rules/calculation/
|
||
- 需求评审校验 → rules/validation/
|
||
- 工时统计口径 → rules/calculation/
|