beta-glozic-workflow 1.6.0 → 1.8.0
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/index.js +4 -14
- package/dist/utils/taskConfig.js +30 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,11 +74,11 @@ class Designer extends _react.Component {
|
|
|
74
74
|
let data = JSON.parse(JSON.stringify(layout));
|
|
75
75
|
data.definition.actions = props.Nodes;
|
|
76
76
|
this.importedJsonFile(data);
|
|
77
|
-
} else if (props.options.updatedNodeId && props.options.
|
|
77
|
+
} else if (props.options.updatedNodeId && props.options.actionConfig) {
|
|
78
78
|
console.log('on update action config');
|
|
79
79
|
console.log(props.options);
|
|
80
80
|
if (this.nodes[props.options.updatedNodeId]) {
|
|
81
|
-
this.nodes[props.options.updatedNodeId].configuration["
|
|
81
|
+
this.nodes[props.options.updatedNodeId].configuration["actionConfig"] = props.options.actionConfig;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -548,17 +548,6 @@ class Designer extends _react.Component {
|
|
|
548
548
|
this.removeAllEndpointOfNode = this.removeAllEndpointOfNode.bind(this);
|
|
549
549
|
this.handleSubmitTaskForm = this.handleSubmitTaskForm.bind(this);
|
|
550
550
|
}
|
|
551
|
-
//Componet By anup
|
|
552
|
-
// componentWillReceiveProps(newProps) {
|
|
553
|
-
// console.log(newProps.workflowobj)
|
|
554
|
-
// console.log(newProps.is_import)
|
|
555
|
-
// console.log('componentWillReceiveProps ', newProps)
|
|
556
|
-
// let self = this;
|
|
557
|
-
// if (newProps.workflowobj) {
|
|
558
|
-
// self.onload();
|
|
559
|
-
// }
|
|
560
|
-
// }
|
|
561
|
-
|
|
562
551
|
render() {
|
|
563
552
|
let self = this;
|
|
564
553
|
const props = this.props;
|
|
@@ -1410,9 +1399,10 @@ class Designer extends _react.Component {
|
|
|
1410
1399
|
actionImage: item.actionImage,
|
|
1411
1400
|
isHidden: false,
|
|
1412
1401
|
nodeType: item.nodeType,
|
|
1402
|
+
properties: propertiesClone,
|
|
1413
1403
|
actionName: copyTask ? copyTask.configuration.actionName : item.name,
|
|
1414
1404
|
isDisabled: copyTask ? copyTask.configuration.isDisabled : false,
|
|
1415
|
-
|
|
1405
|
+
actionConfig: copyTask ? copyTask.configuration.actionConfig : {}
|
|
1416
1406
|
},
|
|
1417
1407
|
branches: null,
|
|
1418
1408
|
wrapper: item.wrapper,
|
package/dist/utils/taskConfig.js
CHANGED
|
@@ -75,6 +75,34 @@ const taskConfig = {
|
|
|
75
75
|
"output": 1,
|
|
76
76
|
"branch": 0,
|
|
77
77
|
"code": []
|
|
78
|
+
},
|
|
79
|
+
"setVariable": {
|
|
80
|
+
"title": "Set Variable",
|
|
81
|
+
"nodeType": "Set Variable",
|
|
82
|
+
"name": "Set Variable",
|
|
83
|
+
"description": "",
|
|
84
|
+
"type": "function",
|
|
85
|
+
"icon": "list-alt",
|
|
86
|
+
"enabled": true,
|
|
87
|
+
"_comment_enabled": "",
|
|
88
|
+
"input": 1,
|
|
89
|
+
"output": 1,
|
|
90
|
+
"branch": 0,
|
|
91
|
+
"code": [""]
|
|
92
|
+
},
|
|
93
|
+
"base64tourl": {
|
|
94
|
+
"title": "Base64 To URL",
|
|
95
|
+
"nodeType": "Base64 To URL",
|
|
96
|
+
"name": "Base64 To URL",
|
|
97
|
+
"description": "",
|
|
98
|
+
"type": "function",
|
|
99
|
+
"icon": "list-alt",
|
|
100
|
+
"enabled": true,
|
|
101
|
+
"_comment_enabled": "",
|
|
102
|
+
"input": 1,
|
|
103
|
+
"output": 1,
|
|
104
|
+
"branch": 0,
|
|
105
|
+
"code": [""]
|
|
78
106
|
}
|
|
79
107
|
},
|
|
80
108
|
"Services": {
|
|
@@ -176,9 +204,9 @@ const taskConfig = {
|
|
|
176
204
|
}]
|
|
177
205
|
},
|
|
178
206
|
"WHILE": {
|
|
179
|
-
"title": "
|
|
207
|
+
"title": "Loop",
|
|
180
208
|
"nodeType": "Loop",
|
|
181
|
-
"name": "
|
|
209
|
+
"name": "Loop",
|
|
182
210
|
"description": "WHILE(CMP, branch)",
|
|
183
211
|
"type": "logic",
|
|
184
212
|
"icon": "retweet",
|