@nocobase/plugin-workflow-test 1.9.0-beta.1 → 1.9.0-beta.10
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
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.9.0-beta.
|
|
12
|
-
"@nocobase/utils": "1.9.0-beta.
|
|
11
|
+
"@nocobase/client": "1.9.0-beta.10",
|
|
12
|
+
"@nocobase/utils": "1.9.0-beta.10",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
-
"@nocobase/test": "1.9.0-beta.
|
|
15
|
-
"@nocobase/server": "1.9.0-beta.
|
|
16
|
-
"@nocobase/data-source-manager": "1.9.0-beta.
|
|
17
|
-
"@nocobase/database": "1.9.0-beta.
|
|
14
|
+
"@nocobase/test": "1.9.0-beta.10",
|
|
15
|
+
"@nocobase/server": "1.9.0-beta.10",
|
|
16
|
+
"@nocobase/data-source-manager": "1.9.0-beta.10",
|
|
17
|
+
"@nocobase/database": "1.9.0-beta.10"
|
|
18
18
|
};
|
|
@@ -102,7 +102,7 @@ var instructions_default = {
|
|
|
102
102
|
},
|
|
103
103
|
asyncResume: {
|
|
104
104
|
async run(node, input, processor) {
|
|
105
|
-
const job =
|
|
105
|
+
const job = processor.saveJob({
|
|
106
106
|
status: 0,
|
|
107
107
|
nodeId: node.id,
|
|
108
108
|
nodeKey: node.key,
|
|
@@ -113,7 +113,7 @@ var instructions_default = {
|
|
|
113
113
|
status: 1
|
|
114
114
|
});
|
|
115
115
|
processor.options.plugin.resume(job);
|
|
116
|
-
}, 100);
|
|
116
|
+
}, node.config.duration ?? 100);
|
|
117
117
|
return null;
|
|
118
118
|
},
|
|
119
119
|
resume(node, job, processor) {
|
|
@@ -14,6 +14,7 @@ declare const _default: {
|
|
|
14
14
|
off(): void;
|
|
15
15
|
sync: boolean;
|
|
16
16
|
validateEvent(): boolean;
|
|
17
|
+
execute(workflow: any, values: any, options: any): any;
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
asyncTrigger: {
|
|
@@ -22,6 +23,7 @@ declare const _default: {
|
|
|
22
23
|
on(): void;
|
|
23
24
|
off(): void;
|
|
24
25
|
validateEvent(): boolean;
|
|
26
|
+
execute(workflow: any, values: any, options: any): any;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
};
|
package/dist/server/triggers.js
CHANGED
|
@@ -42,6 +42,9 @@ var triggers_default = {
|
|
|
42
42
|
validateEvent() {
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
|
+
execute(workflow, values, options) {
|
|
46
|
+
return this.workflow.trigger(workflow, values, options);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
asyncTrigger: class {
|
|
47
50
|
constructor(workflow) {
|
|
@@ -54,5 +57,8 @@ var triggers_default = {
|
|
|
54
57
|
validateEvent() {
|
|
55
58
|
return true;
|
|
56
59
|
}
|
|
60
|
+
execute(workflow, values, options) {
|
|
61
|
+
return this.workflow.trigger(workflow, values, options);
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/plugin-workflow-test",
|
|
3
3
|
"displayName": "Workflow: test kit",
|
|
4
4
|
"displayName.zh-CN": "工作流:测试工具包",
|
|
5
|
-
"version": "1.9.0-beta.
|
|
5
|
+
"version": "1.9.0-beta.10",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "dist/server/index.js",
|
|
8
8
|
"types": "./dist/server/index.d.ts",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
"@nocobase/server": "1.x",
|
|
12
12
|
"@nocobase/test": "1.x"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "a4a5180d8e9b6bebe9df1a931c2c0f8b5c5d26e6"
|
|
15
15
|
}
|