@mldong/jeeflow 1.8.41 → 1.8.42

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.
Files changed (2) hide show
  1. package/dist/engine.js +5 -0
  2. package/package.json +1 -1
package/dist/engine.js CHANGED
@@ -799,6 +799,11 @@ export class EngineImpl {
799
799
  }
800
800
  }
801
801
  }
802
+ // issues/164 A:零命中(两条 expr 边全 false / 变量缺失 / 零出边 / 自定义处理器未命中)
803
+ // ⇒ 显式报错,对齐 java `DecisionModel.exec` 尾部 `NOT_FOUND_NEXT_NODE`(20010001,
804
+ // 文案逐字;python issues/161 已走同一条路)。旧形状此处静默返回=令牌不前进也不报错,
805
+ // 办理人看到 code=0"成功"、实例挂在 state=10 却没有任何人的待办(僵尸实例)。
806
+ throw new Error('decision节点无法确定下一步执行路线');
802
807
  }
803
808
  async createTask(node, inst, operator, vars, processName = '', parentId = '0', isFirst = false) {
804
809
  const actors = await this.resolveActors(node, inst, operator, vars);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mldong/jeeflow",
3
- "version": "1.8.41",
3
+ "version": "1.8.42",
4
4
  "description": "jeeflow workflow engine — Node.js / TypeScript implementation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",