@mldong/jeeflow 1.8.25 → 1.8.26

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 CHANGED
@@ -252,7 +252,8 @@ export class JeeflowFacade {
252
252
  // 撤回:废弃全部 doing 任务 + 实例状态(v1.0.1:updateInstance 级联落库)
253
253
  const operator = String(args.operator ?? 'user1');
254
254
  const now = new Date();
255
- // findInstanceById 不加载 tasks(空),必须按实例查 doing 任务废弃
255
+ // findInstanceById 现水合 tasks(issues/110),此处仍按实例单独查 doing 任务废弃,
256
+ // 且必须把聚合副本重置为仅被废弃项(见下方 inst.tasks = abandoned),防级联回写多余任务
256
257
  const abandoned = [];
257
258
  for (const t of await this.repo.findDoingTasks(instanceId)) {
258
259
  t.abandon(now);
@@ -213,7 +213,11 @@ export class JdbcRepository {
213
213
  operator: row.operator, expireTime: row.expire_time,
214
214
  createTime: row.create_time, createUser: rowId(row.create_user),
215
215
  updateTime: row.update_time, updateUser: rowId(row.update_user),
216
- tasks: [],
216
+ // issues/110:聚合水合——二次查 wf_process_task 装任务副本(含 actorIds),
217
+ // 对齐 Java findTasksByInstanceId / PHP PdoProcessRepository / C# issues/89;
218
+ // 否则门面 detail 的 tasks/activeTaskList 恒空。
219
+ // 复用 findHistoryTasks(ORDER BY id ASC + 批查 actor,事务内经 c() 复用连接)
220
+ tasks: await this.findHistoryTasks(rowId(row.id)),
217
221
  });
218
222
  inst.variables = row.variable ? JSON.parse(row.variable) : {};
219
223
  return inst;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mldong/jeeflow",
3
- "version": "1.8.25",
3
+ "version": "1.8.26",
4
4
  "description": "jeeflow workflow engine — Node.js / TypeScript implementation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",