P4-2 脚本迁移线:全量改写产出 + facade 动词表运行时实现
任务1 全量改写执行: - run_rewrite.py 对客户库缓存 1,427 条逐条改写,按 template_id+脚本序号落盘 output/rewritten/(497 FULL_AUTO + 30 PARTIAL + 85 HARD + 815 NO_S3) - 人工作业单 115 份(PARTIAL 30 + HARD 85),每份附原文/已改部分/余留模式/建议改法/工时口径 - 自动化率 81.2% 复现 C4 实测,0 误改 任务2 facade 动词表运行时: - ScriptFacade 把 31 改写目标动词 + bindField 作为 Groovy 闭包注入 Bindings (PoC enableButton 模式扩展);服务端语义动词直接求值,UI 语义动词捕获为 amis 事件动作指令 JSON(actionType/componentId/args) - 保真层纪律:全在 com.eip4 现代层,com.dsasp 源码零改,ArchUnit 复跑通过 - ScriptExecuteController 提供 /api/script/execute 与 /api/script/execute-template 验证: - 单测 17 方法逐动词覆盖,均经真实 Groovy 过保真层引擎,BUILD SUCCESS - 集成 6 条真实 FULL_AUTO 改写脚本经 8086 执行,amis 指令协议合规 - 回归 PoC script-test 通过,ArchUnit 架构纪律通过 报告 tools/s3_rewriter/P4脚本迁移执行报告.md;新坑入 docs/迁移手册.md 5.39/9.3 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
188
tools/s3_rewriter/output/integration_evidence.json
Normal file
188
tools/s3_rewriter/output/integration_evidence.json
Normal file
@@ -0,0 +1,188 @@
|
||||
[
|
||||
{
|
||||
"name": "办公用品领用申请(按库领用)",
|
||||
"tid": "021e3ba7-e03a-412a-9f0e-c20ef440a885",
|
||||
"seq": 2,
|
||||
"verbs": [
|
||||
"addSubTableButton"
|
||||
],
|
||||
"script": "addSubTableButton(\"GOODSDETAIL\", \"SELECT\", 0);\nbindField(\"OLD_STORE_ID\",getFieldValue(\"STORE_ID\"));",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 2,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "addSubTableButton",
|
||||
"componentId": "GOODSDETAIL",
|
||||
"args": {
|
||||
"target": "SELECT",
|
||||
"index": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "setValue",
|
||||
"componentId": "OLD_STORE_ID",
|
||||
"args": {
|
||||
"value": "X",
|
||||
"bind": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"name": "查看单位信息",
|
||||
"tid": "04da8989-3627-4360-9834-bb55178546dd",
|
||||
"seq": 1,
|
||||
"verbs": [
|
||||
"group_setReadOnly"
|
||||
],
|
||||
"script": "setGroupReadOnly(true);",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 1,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "static",
|
||||
"args": {
|
||||
"scope": "group"
|
||||
}
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"name": "工程选择框-选择已实施工程(全部)",
|
||||
"tid": "07eef963-fd17-42a5-997c-219f0ec18cff",
|
||||
"seq": 1,
|
||||
"verbs": [
|
||||
"balanced_setFilter"
|
||||
],
|
||||
"script": "def searchMap = [\"UNITTYPE\":7];//建设单位\n\nsetFieldFilter(\"BUILDCOMPANY\", searchMap);",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 1,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "setFilter",
|
||||
"componentId": "BUILDCOMPANY",
|
||||
"args": {
|
||||
"filter": {
|
||||
"UNITTYPE": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"name": "总包合同登记(五建定制-列表模板)",
|
||||
"tid": "09aaa5dd-56d3-4364-a5ad-e77480d4d0a9",
|
||||
"seq": 1,
|
||||
"verbs": [
|
||||
"setReadOnly_field"
|
||||
],
|
||||
"script": "setFieldReadOnly(\"PM_PROJECTID\", true);\n//setFieldReadOnly(\"TYPE\",true);",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 1,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "static",
|
||||
"componentId": "PM_PROJECTID"
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"name": "福利保险结算单",
|
||||
"tid": "0d9eac07-1978-4abb-ab1f-f1561f9bd902",
|
||||
"seq": 1,
|
||||
"verbs": [
|
||||
"setVisible"
|
||||
],
|
||||
"script": "setFieldVisible(\"BEGINDATE\", false);",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 1,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "hidden",
|
||||
"componentId": "BEGINDATE"
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
},
|
||||
{
|
||||
"name": "物资供应商调查(五建定制)-暂时不用",
|
||||
"tid": "11b66410-e20a-4d08-b01d-344b1e6f65dd",
|
||||
"seq": 1,
|
||||
"verbs": [
|
||||
"addFieldOption",
|
||||
"getContainerDataSource",
|
||||
"removeAllItems"
|
||||
],
|
||||
"script": "clearFieldData(\"ELIGIBILITY\");\n\n//2:未评审、3:评审中、4:合格、5:不合格、6:黑名\naddFieldOption(\"ELIGIBILITY\", \"请选择\", \"请选择\");\naddFieldOption(\"ELIGIBILITY\", 2, \"未评审\");\naddFieldOption(\"ELIGIBILITY\", 3, \"评审中\");\naddFieldOption(\"ELIGIBILITY\", 4, \"合格\");\naddFieldOption(\"ELIGIBILITY\", 5, \"不合格\");\naddFieldOption(\"ELIGIBILITY\", 6, \"黑名\");",
|
||||
"passed": true,
|
||||
"protocol_ok": true,
|
||||
"commandCount": 7,
|
||||
"commands": [
|
||||
{
|
||||
"actionType": "setOptions",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"options": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": "请选择",
|
||||
"label": "请选择"
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": 2,
|
||||
"label": "未评审"
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": 3,
|
||||
"label": "评审中"
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": 4,
|
||||
"label": "合格"
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": 5,
|
||||
"label": "不合格"
|
||||
}
|
||||
},
|
||||
{
|
||||
"actionType": "addOption",
|
||||
"componentId": "ELIGIBILITY",
|
||||
"args": {
|
||||
"value": 6,
|
||||
"label": "黑名"
|
||||
}
|
||||
}
|
||||
],
|
||||
"error": null
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user