@mldong/jeeflow 1.8.17 → 1.8.18

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/builtin.d.ts CHANGED
@@ -12,9 +12,10 @@ export declare const HANDLER_TASK_ROLE_ASSIGNEE: string;
12
12
  export declare class OperatorAssignmentHandler implements IAssignmentHandler {
13
13
  assign(_node: FlowNode, inst: ProcessInstance | null, _operator: string): Promise<string[]>;
14
14
  }
15
- /** 按表单字段值分配参与者:精确匹配 node.idvars 字段;_数字 后缀去后缀再匹配。 */
15
+ /** 按表单字段值分配参与者:f_ 前缀优先裸名回落 _数字 后缀去后缀再匹配。 */
16
16
  export declare class FormFieldAssigneeHandler implements IAssignmentHandler {
17
17
  assign(node: FlowNode, inst: ProcessInstance | null, _operator: string): Promise<string[]>;
18
+ /** issues/48:f_ 前缀优先 → 裸名回落 → 编号后缀去后缀匹配裸名 */
18
19
  private findFieldValue;
19
20
  private collect;
20
21
  private add;
package/dist/builtin.js CHANGED
@@ -21,7 +21,7 @@ export class OperatorAssignmentHandler {
21
21
  return ['apply.operator'];
22
22
  }
23
23
  }
24
- /** 按表单字段值分配参与者:精确匹配 node.idvars 字段;_数字 后缀去后缀再匹配。 */
24
+ /** 按表单字段值分配参与者:f_ 前缀优先裸名回落 _数字 后缀去后缀再匹配。 */
25
25
  export class FormFieldAssigneeHandler {
26
26
  async assign(node, inst, _operator) {
27
27
  if (!inst || !node)
@@ -31,7 +31,10 @@ export class FormFieldAssigneeHandler {
31
31
  return [];
32
32
  return this.collect(value);
33
33
  }
34
+ /** issues/48:f_ 前缀优先 → 裸名回落 → 编号后缀去后缀匹配裸名 */
34
35
  findFieldValue(variables, fieldName) {
36
+ if ('f_' + fieldName in variables)
37
+ return variables['f_' + fieldName];
35
38
  if (fieldName in variables)
36
39
  return variables[fieldName];
37
40
  const m = NUMBER_SUFFIX_PATTERN.exec(fieldName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mldong/jeeflow",
3
- "version": "1.8.17",
3
+ "version": "1.8.18",
4
4
  "description": "jeeflow workflow engine — Node.js / TypeScript implementation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",