@mldong/jeeflow 1.8.62 → 1.8.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/facade.js +1 -0
- package/dist/jdbc/shared.js +4 -1
- package/dist/memory.js +2 -0
- package/dist/model.d.ts +2 -0
- package/package.json +2 -2
package/dist/facade.js
CHANGED
|
@@ -2225,6 +2225,7 @@ function taskRowToMap(r) {
|
|
|
2225
2225
|
updateTime: fmtTime(r.updateTime), updateUser: r.updateUser,
|
|
2226
2226
|
processDefineName: r.processDefineName, processDefineDisplayName: r.processDefineDisplayName,
|
|
2227
2227
|
instanceCreateTime: fmtTime(r.instanceCreateTime),
|
|
2228
|
+
instanceState: r.instanceState, // issues/250:前端据此把实例已结束的已办行撤回按钮置灰
|
|
2228
2229
|
ext, instanceExt, version: r.defineVersion,
|
|
2229
2230
|
taskFormData: formDataOf(r.variables, 'tf_'), // issues/15
|
|
2230
2231
|
};
|
package/dist/jdbc/shared.js
CHANGED
|
@@ -647,7 +647,8 @@ export class JdbcRepository {
|
|
|
647
647
|
' t.task_state, t.operator, t.finish_time, t.expire_time, t.form_key, t.task_parent_id, t.variable,' +
|
|
648
648
|
' t.create_time, t.create_user, t.update_time, t.update_user,' +
|
|
649
649
|
' pd.name, pd.display_name AS pd_display_name, pd.version AS process_define_version,' +
|
|
650
|
-
' pi.variable AS instance_variable, pi.create_time AS instance_create_time'
|
|
650
|
+
' pi.variable AS instance_variable, pi.create_time AS instance_create_time,' +
|
|
651
|
+
' pi.state AS instance_state'; // issues/250:列表行带所属实例状态(pi 关联本就在,不新增关联)
|
|
651
652
|
const rows = await conn.fetchAll(this.sql(`SELECT ${cols}${where} ORDER BY t.id DESC LIMIT ? OFFSET ?`), [filter, ...cond.params, pageSize, (pageNum - 1) * pageSize]);
|
|
652
653
|
return { rows: rows.map(r => this.mapTaskRow(r)), total };
|
|
653
654
|
}
|
|
@@ -763,6 +764,8 @@ export class JdbcRepository {
|
|
|
763
764
|
processDefineName: r.name ?? '', processDefineDisplayName: r.pd_display_name ?? '',
|
|
764
765
|
defineVersion: Number(r.process_define_version ?? 0),
|
|
765
766
|
instanceVariable: r.instance_variable ?? '', instanceCreateTime: r.instance_create_time,
|
|
767
|
+
// issues/250:对齐 Java rs.getInt("instance_state")(NULL→0);todo/done 共用这一份投影
|
|
768
|
+
instanceState: Number(r.instance_state ?? 0),
|
|
766
769
|
};
|
|
767
770
|
}
|
|
768
771
|
// pageCcInstances 我的抄送分页(v1.3.0):cc 表 join 实例 + 定义,按抄送人过滤(对齐 Java pageCcInstances)
|
package/dist/memory.js
CHANGED
|
@@ -449,6 +449,8 @@ export class MemoryRepository {
|
|
|
449
449
|
defineVersion: def?.version ?? 0,
|
|
450
450
|
instanceVariable: inst ? JSON.stringify(inst.variables ?? {}) : '',
|
|
451
451
|
instanceCreateTime: inst?.createTime ?? t.createTime,
|
|
452
|
+
// issues/250:与 SQL 腿 pi.state 投影对齐(孤儿行防御性回 0,同 Java rs.getInt NULL→0;引擎建单必有实例)
|
|
453
|
+
instanceState: inst?.state ?? 0,
|
|
452
454
|
};
|
|
453
455
|
}
|
|
454
456
|
// pageCcInstances 我的抄送分页(v1.3.0):按抄送人 actorId 过滤,join 实例 + 定义
|
package/dist/model.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mldong/jeeflow",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.63",
|
|
4
4
|
"description": "jeeflow workflow engine — Node.js / TypeScript implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"build": "tsc",
|
|
21
21
|
"typecheck": "tsc -p tsconfig.check.json",
|
|
22
22
|
"test": "node --import tsx __tests__/spec.test.ts && node --import tsx --test __tests__/reapply.test.ts && node --import tsx --test __tests__/add-sign-after.test.ts && node --import tsx --test __tests__/recall.test.ts && node --import tsx --test __tests__/dynamic-countersign.test.ts && node --import tsx --test __tests__/action-permission.test.ts && node --import tsx --test __tests__/persist.test.ts",
|
|
23
|
-
"test-mysql": "node --import tsx --test --test-concurrency=1 __tests__/jdbc.test.ts __tests__/tx-tier-145.test.ts __tests__/after_commit_r77.test.ts __tests__/recall-collect-mysql.test.ts",
|
|
23
|
+
"test-mysql": "node --import tsx --test --test-concurrency=1 __tests__/jdbc.test.ts __tests__/tx-tier-145.test.ts __tests__/after_commit_r77.test.ts __tests__/recall-collect-mysql.test.ts __tests__/instance-state-mysql.test.ts",
|
|
24
24
|
"demo": "node --import tsx demo/main.ts",
|
|
25
25
|
"prepublishOnly": "npm run build"
|
|
26
26
|
},
|