beta-glozic-workflow 1.21.0 → 1.24.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/css/style.css +62 -1
- package/dist/index.js +8 -1
- package/dist/utils/taskConfig.js +13 -1
- package/dist/utils/workflow.config.js +1 -1
- package/package.json +1 -1
package/dist/css/style.css
CHANGED
|
@@ -372,4 +372,65 @@
|
|
|
372
372
|
color: #fff !important;
|
|
373
373
|
background-color: #2bbbad !important;
|
|
374
374
|
border-color: #2bbbad !important;
|
|
375
|
-
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.initial-branch::before {
|
|
378
|
+
position: absolute;
|
|
379
|
+
left: -19px;
|
|
380
|
+
top: 11px;
|
|
381
|
+
width: 53px;
|
|
382
|
+
z-index: 99;
|
|
383
|
+
font-size: 12px;
|
|
384
|
+
background: white;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.initial-if::before {
|
|
388
|
+
position: absolute;
|
|
389
|
+
left: -14px;
|
|
390
|
+
top: 11px;
|
|
391
|
+
width: 53px;
|
|
392
|
+
z-index: 99;
|
|
393
|
+
font-size: 12px;
|
|
394
|
+
background: white;
|
|
395
|
+
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.initial-branch-value1::before {
|
|
399
|
+
content: "Branch 1";
|
|
400
|
+
}
|
|
401
|
+
.initial-branch-value2::before {
|
|
402
|
+
content: "Branch 2";
|
|
403
|
+
}
|
|
404
|
+
.initial-branch-value3::before {
|
|
405
|
+
content: "Branch 3";
|
|
406
|
+
}
|
|
407
|
+
.initial-branch-value4::before {
|
|
408
|
+
content: "Branch 4";
|
|
409
|
+
}
|
|
410
|
+
.initial-branch-value5::before {
|
|
411
|
+
content: "Branch 5";
|
|
412
|
+
}
|
|
413
|
+
.initial-branch-value6::before {
|
|
414
|
+
content: "Branch 6";
|
|
415
|
+
}
|
|
416
|
+
.initial-branch-value7::before {
|
|
417
|
+
content: "Branch 7";
|
|
418
|
+
}
|
|
419
|
+
.initial-branch-value8::before {
|
|
420
|
+
content: "Branch 8";
|
|
421
|
+
}
|
|
422
|
+
.initial-branch-value9::before {
|
|
423
|
+
content: "Branch 9";
|
|
424
|
+
}
|
|
425
|
+
.initial-branch-value10::before {
|
|
426
|
+
content: "Branch 10";
|
|
427
|
+
}
|
|
428
|
+
.initial-if-value1::before {
|
|
429
|
+
content: "False";
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.initial-if-value2::before {
|
|
433
|
+
content: "True";
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
|
package/dist/index.js
CHANGED
|
@@ -1028,6 +1028,7 @@ class Designer extends _react.Component {
|
|
|
1028
1028
|
//let item = config.taskType[datatype.parent][datatype.type];
|
|
1029
1029
|
let item = taskConfig[datatype.type];
|
|
1030
1030
|
let branches = copyTask ? copyTask.branches ? copyTask.branches.length : null : item.branch;
|
|
1031
|
+
let nodeType = copyTask ? copyTask !== null && copyTask !== void 0 && copyTask.nodeType ? copyTask.nodeType : null : item === null || item === void 0 ? void 0 : item.nodeType;
|
|
1031
1032
|
let connections = this.firstInstance.getConnections({
|
|
1032
1033
|
source: source,
|
|
1033
1034
|
target: target
|
|
@@ -1234,7 +1235,13 @@ class Designer extends _react.Component {
|
|
|
1234
1235
|
let topPos = this.nodes[target].element.offsetTop - _workflow.config.nodeGap;
|
|
1235
1236
|
newTopBranchNode.setAttribute('id', topBranchId);
|
|
1236
1237
|
newBotBranchNode.setAttribute('id', botBranchId);
|
|
1237
|
-
|
|
1238
|
+
if (nodeType == "BRANCH") {
|
|
1239
|
+
newTopBranchNode.className = "fc-item fc-item-draggable fc-item-end-point initial-branch initial-branch-value".concat(i + 1);
|
|
1240
|
+
} else if (nodeType == "Condition") {
|
|
1241
|
+
newTopBranchNode.className = "fc-item fc-item-draggable fc-item-end-point initial-if initial-if-value".concat(i + 1);
|
|
1242
|
+
} else {
|
|
1243
|
+
newTopBranchNode.className = "fc-item fc-item-draggable fc-item-end-point";
|
|
1244
|
+
}
|
|
1238
1245
|
newBotBranchNode.className = 'fc-item fc-item-draggable fc-item-end-point';
|
|
1239
1246
|
let left;
|
|
1240
1247
|
let top;
|
package/dist/utils/taskConfig.js
CHANGED
|
@@ -272,7 +272,7 @@ const taskConfig = exports.taskConfig = {
|
|
|
272
272
|
"name": "branch1",
|
|
273
273
|
"actions": []
|
|
274
274
|
}],
|
|
275
|
-
"title": "
|
|
275
|
+
"title": "Branch",
|
|
276
276
|
"nodeType": "BRANCH",
|
|
277
277
|
"name": "BRANCH",
|
|
278
278
|
"description": "IF_ELSE(CMP, branch_if_true, branch_if_false)",
|
|
@@ -312,6 +312,18 @@ const taskConfig = exports.taskConfig = {
|
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
314
|
"Integration": {
|
|
315
|
+
"SQLService": {
|
|
316
|
+
"title": "SQL Service",
|
|
317
|
+
"name": "SQL Service",
|
|
318
|
+
"nodeType": "SQL Service",
|
|
319
|
+
"description": "SQL Service",
|
|
320
|
+
"type": "service",
|
|
321
|
+
"icon": "database",
|
|
322
|
+
"enabled": true,
|
|
323
|
+
"input": 1,
|
|
324
|
+
"output": 1,
|
|
325
|
+
"branch": 0
|
|
326
|
+
},
|
|
315
327
|
"callWebService": {
|
|
316
328
|
"actionID": "ff5fbcf2-43a3-47b4-95b6-adbac3e0c4e1",
|
|
317
329
|
"title": "Call a web service",
|