1415 lines
35 KiB
JSON
1415 lines
35 KiB
JSON
{
|
||
"cells": [
|
||
{
|
||
"position": {
|
||
"x": 846.5,
|
||
"y": -330
|
||
},
|
||
"size": {
|
||
"width": 65,
|
||
"height": 25
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Start",
|
||
"nodeType": "Action.Start",
|
||
"label": "开始",
|
||
"data": {},
|
||
"component": "action-start",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "start",
|
||
"_order": 0,
|
||
"zIndex": 1,
|
||
"_validateError": false
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 790,
|
||
"y": 690
|
||
},
|
||
"size": {
|
||
"width": 65,
|
||
"height": 25
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.End",
|
||
"nodeType": "Action.End",
|
||
"label": "结束",
|
||
"data": {},
|
||
"component": "action-end",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "end",
|
||
"_order": 0,
|
||
"zIndex": 1,
|
||
"_validateError": false
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 690,
|
||
"y": 240
|
||
},
|
||
"size": {
|
||
"width": 496.5,
|
||
"height": 244
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Foreach",
|
||
"nodeType": "Action.Foreach",
|
||
"label": "循环",
|
||
"data": {
|
||
"inputCollection": "${formobj.host.ip}",
|
||
"iterationParam": "item"
|
||
},
|
||
"component": "action-foreach",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "c9656849-4caf-47d5-85d7-df540fbe9873",
|
||
"zIndex": 2,
|
||
"_validateError": false,
|
||
"children": [
|
||
"4f71eec5-1487-4053-924c-3fd42f087263",
|
||
"63400f2b-4950-4057-8aa4-329750913cc9"
|
||
],
|
||
"meta": {
|
||
"hasStart": true
|
||
},
|
||
"originPosition": {
|
||
"x": 690,
|
||
"y": 240
|
||
},
|
||
"originSize": {
|
||
"width": 280,
|
||
"height": 200
|
||
},
|
||
"_selected": false
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 748.75,
|
||
"y": 287.5
|
||
},
|
||
"size": {
|
||
"width": 65,
|
||
"height": 25
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Start",
|
||
"nodeType": "Action.Start",
|
||
"label": "开始",
|
||
"data": {},
|
||
"component": "action-start",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "4f71eec5-1487-4053-924c-3fd42f087263",
|
||
"parent": "c9656849-4caf-47d5-85d7-df540fbe9873",
|
||
"zIndex": 3,
|
||
"_validateError": false,
|
||
"_selected": false
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 881.5,
|
||
"y": 390
|
||
},
|
||
"size": {
|
||
"width": 65,
|
||
"height": 25
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.End",
|
||
"nodeType": "Action.End",
|
||
"label": "结束",
|
||
"data": {},
|
||
"component": "action-end",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "63400f2b-4950-4057-8aa4-329750913cc9",
|
||
"zIndex": 5,
|
||
"_validateError": false,
|
||
"parent": "c9656849-4caf-47d5-85d7-df540fbe9873"
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 811.5,
|
||
"y": -125
|
||
},
|
||
"size": {
|
||
"width": 135,
|
||
"height": 60
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Script",
|
||
"nodeType": "Action.Script",
|
||
"label": "执行函数",
|
||
"data": {
|
||
"funcType": "page",
|
||
"script": "appointHosts",
|
||
"params": [
|
||
{
|
||
"name": "playbook",
|
||
"value": "${curBookreference.playbook_path}"
|
||
}
|
||
]
|
||
},
|
||
"component": "action-script",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "dfe05a8c-0f47-4ae1-bc97-b1fabf31ea15",
|
||
"zIndex": 10,
|
||
"_validateError": false,
|
||
"_selected": false
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "14e3c0ef-a205-4d3a-a930-0d4a8c5eca14",
|
||
"zIndex": 11,
|
||
"source": {
|
||
"cell": "dfe05a8c-0f47-4ae1-bc97-b1fabf31ea15",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "b4cfb4a7-a1cb-47ac-84f3-d8a805f1abbb",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 811.5,
|
||
"y": -245
|
||
},
|
||
"size": {
|
||
"width": 135,
|
||
"height": 60
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.ValidateForm",
|
||
"nodeType": "Action.ValidateForm",
|
||
"label": "校验表单",
|
||
"data": {
|
||
"formId": "reform"
|
||
},
|
||
"component": "action-validate-form",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "a10a5c79-a14d-403d-83fc-70a5e86a96d8",
|
||
"zIndex": 14,
|
||
"_validateError": false,
|
||
"_selected": false
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 480,
|
||
"y": 2.5
|
||
},
|
||
"size": {
|
||
"width": 152,
|
||
"height": 64
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Message",
|
||
"nodeType": "Action.Message",
|
||
"label": "顶部消息提示",
|
||
"data": {
|
||
"notifyType": "error",
|
||
"content": "Playbook中hosts为空或不存在,请检查",
|
||
"duration": 1.5,
|
||
"closable": false,
|
||
"background": false
|
||
},
|
||
"component": "action-message",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "6e5ffab4-c9be-406c-92d7-61d2646a09a8",
|
||
"zIndex": 16,
|
||
"_validateError": false,
|
||
"_selected": false
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "681bb452-53a0-49a3-9806-fb1648931c53",
|
||
"zIndex": 18,
|
||
"source": {
|
||
"cell": "a10a5c79-a14d-403d-83fc-70a5e86a96d8",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "dfe05a8c-0f47-4ae1-bc97-b1fabf31ea15",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 855,
|
||
"y": 9
|
||
},
|
||
"size": {
|
||
"width": 51,
|
||
"height": 51
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Switch",
|
||
"nodeType": "Action.Switch",
|
||
"label": "分支",
|
||
"data": {},
|
||
"component": "action-switch",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "b4cfb4a7-a1cb-47ac-84f3-d8a805f1abbb",
|
||
"zIndex": 19,
|
||
"_validateError": false
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "ba99a5e4-5cde-4eea-8cb0-a85eef8c9f5f",
|
||
"zIndex": 20,
|
||
"data": {
|
||
"condition": "${!hosts}"
|
||
},
|
||
"source": {
|
||
"cell": "b4cfb4a7-a1cb-47ac-84f3-d8a805f1abbb",
|
||
"port": "left"
|
||
},
|
||
"target": {
|
||
"cell": "6e5ffab4-c9be-406c-92d7-61d2646a09a8",
|
||
"port": "right"
|
||
}
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "59b574db-330d-4a31-bebd-fa814e54eec3",
|
||
"zIndex": 21,
|
||
"data": {
|
||
"condition": "${hosts!==null}"
|
||
},
|
||
"source": {
|
||
"cell": "b4cfb4a7-a1cb-47ac-84f3-d8a805f1abbb",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "c9656849-4caf-47d5-85d7-df540fbe9873",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 790,
|
||
"y": 580
|
||
},
|
||
"size": {
|
||
"width": 152,
|
||
"height": 64
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Back",
|
||
"nodeType": "Action.Back",
|
||
"label": "返回页面",
|
||
"data": {},
|
||
"component": "action-back",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
}
|
||
]
|
||
},
|
||
"id": "c85cad0a-0c62-4083-85d9-05e7367d17b9",
|
||
"zIndex": 22,
|
||
"_validateError": false,
|
||
"_selected": false
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "4aab79bf-8483-41dc-9329-6d393d4d6ec8",
|
||
"zIndex": 23,
|
||
"source": {
|
||
"cell": "6e5ffab4-c9be-406c-92d7-61d2646a09a8",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "c85cad0a-0c62-4083-85d9-05e7367d17b9",
|
||
"port": "left"
|
||
}
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "e6d6df9a-2f37-4e08-bd13-0db01a396588",
|
||
"zIndex": 25,
|
||
"source": {
|
||
"cell": "c85cad0a-0c62-4083-85d9-05e7367d17b9",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "end",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "04c6eae3-d5d8-40de-8c5b-0f91e1b08d0b",
|
||
"zIndex": 35,
|
||
"source": {
|
||
"cell": "start",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "a10a5c79-a14d-403d-83fc-70a5e86a96d8",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"shape": "edge",
|
||
"attrs": {
|
||
"line": {
|
||
"stroke": "#dadada",
|
||
"targetMarker": {
|
||
"name": "block",
|
||
"width": 12,
|
||
"height": 8
|
||
}
|
||
}
|
||
},
|
||
"id": "2773fa96-6552-4bd1-a3f7-ace737dd83b7",
|
||
"zIndex": 36,
|
||
"source": {
|
||
"cell": "c9656849-4caf-47d5-85d7-df540fbe9873",
|
||
"port": "bottom"
|
||
},
|
||
"target": {
|
||
"cell": "c85cad0a-0c62-4083-85d9-05e7367d17b9",
|
||
"port": "top"
|
||
}
|
||
},
|
||
{
|
||
"position": {
|
||
"x": 1323.5,
|
||
"y": 180
|
||
},
|
||
"size": {
|
||
"width": 135,
|
||
"height": 60
|
||
},
|
||
"view": "vue-shape-view",
|
||
"shape": "Action.Http",
|
||
"nodeType": "Action.Http",
|
||
"label": "发送HTTP请求",
|
||
"data": {
|
||
"schema": {},
|
||
"url": "${'/onecloud/api/v2/ansibleplaybookreferences/'+formobj.referenceName+'/run'}",
|
||
"method": "POST",
|
||
"params": {},
|
||
"data": {
|
||
"host": "${{\r\n \"name\": hosts,\r\n \"ip\": item\r\n}\r\n}",
|
||
"args": "${utils.JSON.parse(args)}",
|
||
"sync": "${true}"
|
||
},
|
||
"headers": {
|
||
"X-Project-Id": "${projectId}"
|
||
},
|
||
"description": null,
|
||
"serviceType": "onecloud"
|
||
},
|
||
"component": "action-http",
|
||
"ports": {
|
||
"groups": {
|
||
"top": {
|
||
"position": "top",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"right": {
|
||
"position": "right",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"bottom": {
|
||
"position": "bottom",
|
||
"label": {
|
||
"position": "bottom"
|
||
},
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"left": {
|
||
"position": "left",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "#5F95FF",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"style": {
|
||
"visibility": "hidden"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"items": [
|
||
{
|
||
"group": "top",
|
||
"id": "top"
|
||
},
|
||
{
|
||
"group": "right",
|
||
"id": "right"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "bottom"
|
||
},
|
||
{
|
||
"group": "left",
|
||
"id": "left"
|
||
},
|
||
{
|
||
"group": "bottom",
|
||
"id": "port-error",
|
||
"attrs": {
|
||
"circle": {
|
||
"r": 5,
|
||
"magnet": true,
|
||
"stroke": "red",
|
||
"strokeWidth": 1,
|
||
"fill": "#fff",
|
||
"title": "处理异常",
|
||
"data-title": "处理异常"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"id": "74c11e68-621e-40d5-aa00-d4e9fb9818c2",
|
||
"_order": 0,
|
||
"_validateError": false,
|
||
"_selected": true,
|
||
"zIndex": 37
|
||
}
|
||
]
|
||
} |