@nocobase/plugin-workflow-parallel 1.9.0-beta.5 → 1.9.0-beta.6
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/externalVersion.js
CHANGED
|
@@ -11,11 +11,11 @@ module.exports = {
|
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"antd": "5.24.2",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"@nocobase/client": "1.9.0-beta.
|
|
15
|
-
"@nocobase/plugin-workflow": "1.9.0-beta.
|
|
14
|
+
"@nocobase/client": "1.9.0-beta.6",
|
|
15
|
+
"@nocobase/plugin-workflow": "1.9.0-beta.6",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/server": "1.9.0-beta.
|
|
18
|
-
"@nocobase/plugin-workflow-test": "1.9.0-beta.
|
|
19
|
-
"@nocobase/test": "1.9.0-beta.
|
|
20
|
-
"@nocobase/utils": "1.9.0-beta.
|
|
17
|
+
"@nocobase/server": "1.9.0-beta.6",
|
|
18
|
+
"@nocobase/plugin-workflow-test": "1.9.0-beta.6",
|
|
19
|
+
"@nocobase/test": "1.9.0-beta.6",
|
|
20
|
+
"@nocobase/utils": "1.9.0-beta.6"
|
|
21
21
|
};
|
|
@@ -14,6 +14,6 @@ export declare const PARALLEL_MODE: {
|
|
|
14
14
|
readonly ALL_SETTLED: "allSettled";
|
|
15
15
|
};
|
|
16
16
|
export default class extends Instruction {
|
|
17
|
-
run(node: FlowNodeModel, prevJob: JobModel, processor: Processor): Promise<
|
|
18
|
-
resume(node: FlowNodeModel, branchJob: any, processor: Processor): Promise<
|
|
17
|
+
run(node: FlowNodeModel, prevJob: JobModel, processor: Processor): Promise<void>;
|
|
18
|
+
resume(node: FlowNodeModel, branchJob: any, processor: Processor): Promise<JobModel>;
|
|
19
19
|
}
|
|
@@ -115,13 +115,13 @@ class ParallelInstruction_default extends import_plugin_workflow.Instruction {
|
|
|
115
115
|
}),
|
|
116
116
|
Promise.resolve()
|
|
117
117
|
);
|
|
118
|
-
return null;
|
|
119
118
|
}
|
|
120
119
|
async resume(node, branchJob, processor) {
|
|
121
120
|
const job = processor.findBranchParentJob(branchJob, node);
|
|
122
121
|
const { result, status } = job;
|
|
123
122
|
if (status !== import_plugin_workflow.JOB_STATUS.PENDING) {
|
|
124
|
-
|
|
123
|
+
processor.logger.warn(`parallel (${job.nodeId}) has been done, ignore newly resumed event`);
|
|
124
|
+
return null;
|
|
125
125
|
}
|
|
126
126
|
const jobNode = processor.nodesMap.get(branchJob.nodeId);
|
|
127
127
|
const branchStartNode = processor.findBranchStartNode(jobNode, node);
|
|
@@ -134,8 +134,8 @@ class ParallelInstruction_default extends import_plugin_workflow.Instruction {
|
|
|
134
134
|
status: Modes[mode].getStatus(newResult)
|
|
135
135
|
});
|
|
136
136
|
if (job.status === import_plugin_workflow.JOB_STATUS.PENDING) {
|
|
137
|
-
|
|
138
|
-
return
|
|
137
|
+
processor.saveJob(job);
|
|
138
|
+
return null;
|
|
139
139
|
}
|
|
140
140
|
return job;
|
|
141
141
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:并行分支节点",
|
|
5
5
|
"description": "Could be used for parallel execution of branch processes in the workflow.",
|
|
6
6
|
"description.zh-CN": "用于在工作流中需要并行执行的分支流程。",
|
|
7
|
-
"version": "1.9.0-beta.
|
|
7
|
+
"version": "1.9.0-beta.6",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/workflow-parallel",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nocobase/server": "1.x",
|
|
23
23
|
"@nocobase/test": "1.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "ada5e359a91135cb9baf605c04c5c380f067a046",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Workflow"
|
|
28
28
|
]
|