@nocobase/plugin-workflow-loop 0.19.0-alpha.3 → 0.19.0-alpha.5

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.
@@ -1,8 +1,8 @@
1
1
  module.exports = {
2
2
  "react": "18.2.0",
3
3
  "@ant-design/icons": "5.2.6",
4
- "@nocobase/client": "0.19.0-alpha.3",
5
- "@nocobase/plugin-workflow": "0.19.0-alpha.3",
4
+ "@nocobase/client": "0.19.0-alpha.5",
5
+ "@nocobase/plugin-workflow": "0.19.0-alpha.5",
6
6
  "react-i18next": "11.18.6",
7
- "@nocobase/server": "0.19.0-alpha.3"
7
+ "@nocobase/server": "0.19.0-alpha.5"
8
8
  };
@@ -0,0 +1,10 @@
1
+ {
2
+ "Loop": "루프",
3
+ "Loop target": "루프 대상",
4
+ "Loop index": "현재 인덱스",
5
+ "Loop length": "루프 길이",
6
+ "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.":
7
+ "루프 노드를 사용하면 여러 데이터 세트에 동일한 작업을 수행할 수 있습니다. 이러한 세트의 소스는 쿼리 노드에서 가져온 여러 레코드이거나 단일 레코드의 여러 관련 레코드일 수 있습니다. 루프 노드는 특정 횟수만큼 반복하거나 문자열의 각 문자를 반복하는 데에도 사용할 수 있습니다. 그러나 과도한 루핑은 성능 문제를 일으킬 수 있으므로 주의해서 사용하십시오.",
8
+ "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.":
9
+ "단일 숫자는 루프 카운트로 처리되고, 단일 문자열은 문자 배열로 처리되며, 다른 배열이 아닌 값은 배열로 변환됩니다. 루프 노드는 루프 카운트에 도달하거나 배열 루프가 완료되었을 때 종료됩니다. 루프를 종료하려면 루프에 조건 노드를 추가할 수도 있습니다."
10
+ }
@@ -50,6 +50,7 @@ class LoopInstruction_default extends import_plugin_workflow.Instruction {
50
50
  // save loop index
51
51
  result: 0,
52
52
  nodeId: node.id,
53
+ nodeKey: node.key,
53
54
  upstreamId: (prevJob == null ? void 0 : prevJob.id) ?? null
54
55
  });
55
56
  await processor.run(branch, job);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:循环节点",
5
5
  "description": "Useful plugin for doing dynamic calculation based on expression collection records in workflow.",
6
6
  "description.zh-CN": "用于在工作流中进行基于数据行的动态表达式计算。",
7
- "version": "0.19.0-alpha.3",
7
+ "version": "0.19.0-alpha.5",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "devDependencies": {
@@ -19,5 +19,5 @@
19
19
  "@nocobase/server": "0.x",
20
20
  "@nocobase/test": "0.x"
21
21
  },
22
- "gitHead": "3cee597df101a3f8f0f1e2a6f75fc2dddd02ac74"
22
+ "gitHead": "580eca25451ec731d17ddef285d0b8c52c48d501"
23
23
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "Loop": "루프",
3
+ "Loop target": "루프 대상",
4
+ "Loop index": "현재 인덱스",
5
+ "Loop length": "루프 길이",
6
+ "By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.":
7
+ "루프 노드를 사용하면 여러 데이터 세트에 동일한 작업을 수행할 수 있습니다. 이러한 세트의 소스는 쿼리 노드에서 가져온 여러 레코드이거나 단일 레코드의 여러 관련 레코드일 수 있습니다. 루프 노드는 특정 횟수만큼 반복하거나 문자열의 각 문자를 반복하는 데에도 사용할 수 있습니다. 그러나 과도한 루핑은 성능 문제를 일으킬 수 있으므로 주의해서 사용하십시오.",
8
+ "A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.":
9
+ "단일 숫자는 루프 카운트로 처리되고, 단일 문자열은 문자 배열로 처리되며, 다른 배열이 아닌 값은 배열로 변환됩니다. 루프 노드는 루프 카운트에 도달하거나 배열 루프가 완료되었을 때 종료됩니다. 루프를 종료하려면 루프에 조건 노드를 추가할 수도 있습니다."
10
+ }
@@ -32,6 +32,7 @@ export default class extends Instruction {
32
32
  // save loop index
33
33
  result: 0,
34
34
  nodeId: node.id,
35
+ nodeKey: node.key,
35
36
  upstreamId: prevJob?.id ?? null,
36
37
  });
37
38