@coding-flow/flow-approval-presenter 0.0.47 → 0.0.48
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,4 +1,3 @@
|
|
|
1
|
-
import { GroovyScriptConvertorUtil } from "@coding-flow/flow-core";
|
|
2
1
|
class FlowActionPresenter {
|
|
3
2
|
api;
|
|
4
3
|
formActionContext;
|
|
@@ -40,13 +39,17 @@ class FlowActionPresenter {
|
|
|
40
39
|
for (const action of actions)if (action.id === actionId) {
|
|
41
40
|
if ('PASS' === action.type) return true;
|
|
42
41
|
if ('CUSTOM' === action.type) {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
if (returnData.includes('PASS')) return true;
|
|
42
|
+
const triggerType = action.triggerType;
|
|
43
|
+
if ('PASS' === triggerType) return true;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
return false;
|
|
49
47
|
}
|
|
48
|
+
getAction(actionId) {
|
|
49
|
+
const actions = this.state.flow?.actions || [];
|
|
50
|
+
for (const action of actions)if (action.id === actionId) return action;
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
50
53
|
async submitAction(actionId, formData, params) {
|
|
51
54
|
const recordId = formData.recordId || this.state.flow?.recordId;
|
|
52
55
|
const workCode = this.state.flow?.workCode || '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coding-flow/flow-approval-presenter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "flow-engine approval presenter framework ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dayjs": "^1.11.19",
|
|
37
37
|
"immer": "^11.1.3",
|
|
38
38
|
"react-redux": "^9.2.0",
|
|
39
|
-
"@coding-flow/flow-core": "0.0.
|
|
40
|
-
"@coding-flow/flow-types": "0.0.
|
|
39
|
+
"@coding-flow/flow-core": "0.0.48",
|
|
40
|
+
"@coding-flow/flow-types": "0.0.48"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@coding-flow/flow-types": "0.0.
|
|
43
|
+
"@coding-flow/flow-types": "0.0.48"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rslib build",
|