8294da6a56f4a2e8acf4d5366ccf9b1b871500c7
[sdc/sdc-workflow-designer.git] / distribution / src / main / assembly / ext-activities.json
1 [
2   {
3     "id": "apds_service",
4     "displayName": {
5       "zh_CN": "Service",
6       "en_US": "Service"
7     },
8     "description": {
9       "zh_CN": "JAVA 节点",
10       "en_US": "JAVA Node"
11     },
12     "type": "serviceTask",
13     "icon": {
14       "name": "apds_service",
15       "width": 56,
16       "height": 56
17     },
18     "content": {
19       "class": "",
20       "inputs": {}
21     }
22   },
23   {
24     "id": "apds_rest",
25     "displayName": {
26       "zh_CN": "REST",
27       "en_US": "REST"
28     },
29     "description": {
30       "zh_CN": "REST 节点",
31       "en_US": "REST Node"
32     },
33     "type": "restTask",
34     "icon": {
35       "name": "apds_rest",
36       "width": 56,
37       "height": 56
38     },
39     "content": {
40       "url": "",
41       "name": "",
42       "version": "",
43       "path": "",
44       "method": "",
45       "accept": "",
46       "inputs": {}
47     }
48   },
49   {
50     "id": "apds_script",
51     "displayName": {
52       "zh_CN": "默认脚本",
53       "en_US": "Script"
54     },
55     "description": {
56       "zh_CN": "脚本节点",
57       "en_US": "Script Node"
58     },
59     "type": "scriptTask",
60     "icon": {
61       "name": "apds_script",
62       "width": 56,
63       "height": 56
64     },
65     "content": {
66       "scriptFormat": "",
67       "script": ""
68     }
69   },
70   {
71     "id": "apds_scriptA",
72     "displayName": {
73       "zh_CN": "JavaScript",
74       "en_US": "JavaScript"
75     },
76     "description": {
77       "zh_CN": "脚本节点",
78       "en_US": "Script Node"
79     },
80     "type": "scriptTask",
81     "icon": {
82       "name": "apds_script",
83       "width": 56,
84       "height": 56
85     },
86     "content": {
87       "scriptFormat": "JavaScript",
88       "script": "abc"
89     }
90   },
91   {
92     "id": "apds_scriptB",
93     "displayName": {
94       "zh_CN": "Groovy",
95       "en_US": "Groovy"
96     },
97     "description": {
98       "zh_CN": "脚本节点",
99       "en_US": "Script Node"
100     },
101     "type": "scriptTask",
102     "icon": {
103       "name": "apds_script",
104       "width": 56,
105       "height": 56
106     },
107     "content": {
108       "scriptFormat": "Groovy",
109       "script": "xyz"
110     }
111   },
112   {
113     "id": "apds_serviceA",
114     "displayName": {
115       "zh_CN": "JAVA A",
116       "en_US": "JAVA A"
117     },
118     "description": {
119       "zh_CN": "JAVA 节点",
120       "en_US": "JAVA Node"
121     },
122     "type": "serviceTask",
123     "icon": {
124       "name": "apds_service",
125       "width": 56,
126       "height": 56
127     },
128     "content": {
129       "class": "com.zte.ums.workflow.activitiext.restservicetask.HttpUtil",
130       "inputs": {
131         "param1": {
132           "type": "string",
133           "default": "default",
134           "required": false,
135           "constraints": [],
136           "displayName": {
137             "zh_CN": "参数1",
138             "en_US": "Param1"
139           },
140           "show": false,
141           "editable": true
142         },
143         "param2": {
144           "type": "string",
145           "default": "",
146           "required": true,
147           "displayName": {
148             "zh_CN": "参数2",
149             "en_US": "Param2"
150           },
151           "show": true,
152           "editable": true
153         },
154         "param3": {
155           "type": "string",
156           "default": "value3",
157           "required": true,
158           "displayName": {
159             "zh_CN": "参数3",
160             "en_US": "Param3"
161           },
162           "show": true,
163           "editable": false
164         }
165       },
166       "outputs": {
167         "out1": {
168           "type": "string",
169           "default": "default",
170           "required": false,
171           "constraints": [],
172           "displayName": {
173             "zh_CN": "输出1",
174             "en_US": "Output Param 1"
175           },
176           "show": true,
177           "editable": true
178         }
179       }
180     }
181   },
182   {
183     "id": "apds_restA",
184     "displayName": {
185       "zh_CN": "REST无参数",
186       "en_US": "REST No Parameters"
187     },
188     "description": {
189       "zh_CN": "REST无参数",
190       "en_US": "REST No Parameters"
191     },
192     "type": "restTask",
193     "icon": {
194       "name": "apds_rest",
195       "width": 56,
196       "height": 56
197     },
198     "content": {
199       "serviceName": "name",
200       "serviceVersion": "v1",
201       "baseUrl": "url",
202       "path": "/test/",
203       "method": "put",
204       "consumes": "application/json, text/plain",
205       "produces": "application/json, text/plain",
206       "inputs": {}
207     }
208   },
209   {
210     "id": "apds_restB",
211     "displayName": {
212       "zh_CN": "REST复杂参数",
213       "en_US": "REST Complex Parameters"
214     },
215     "description": {
216       "zh_CN": "REST复杂参数",
217       "en_US": "REST Complex Parameters"
218     },
219     "type": "restTask",
220     "icon": {
221       "name": "apds_rest",
222       "width": 56,
223       "height": 56
224     },
225     "content": {
226       "serviceName": "ServiceName",
227       "serviceVersion": "v1",
228       "baseUrl": "url",
229       "path": "/test/",
230       "method": "put",
231       "consumes": "application/json, text/plain",
232       "produces": "application/json, text/plain",
233       "inputs": {
234         "param1": {
235           "type": "string",
236           "default": "default",
237           "required": false,
238           "constraints": [],
239           "show": false,
240           "editable": true
241         },
242         "param2": {
243           "type": "object",
244           "default": "",
245           "properties": {
246             "a": {
247               "type": "number"
248             },
249             "b": {
250               "type": "string"
251             },
252             "c": {
253               "type": "array",
254               "items": {
255                 "type": "string",
256                 "enum": [
257                   "a",
258                   "b",
259                   "c"
260                 ]
261               }
262             },
263             "d": {
264               "type": "array",
265               "items": {
266                 "type": "object",
267                 "properties": {
268                   "p1": {
269                     "type": "number"
270                   },
271                   "p2": {
272                     "type": "boolean"
273                   }
274                 }
275               }
276             },
277             "y": {
278               "type": "object",
279               "additionalProperties": {
280                 "type": "string"
281               }
282             },
283             "z": {
284               "type": "object",
285               "additionalProperties": {
286                 "type": "integer"
287               }
288             }
289           },
290           "required": true,
291           "show": true,
292           "editable": true
293         },
294         "param3": {
295           "type": "string",
296           "default": "value3",
297           "required": true,
298           "show": true,
299           "editable": false
300         }
301       },
302       "outputs": {
303         "out1": {
304           "type": "string",
305           "default": "default",
306           "required": false,
307           "constraints": [],
308           "displayName": {
309             "zh_CN": "输出1",
310             "en_US": "Output Param 1"
311           },
312           "show": true,
313           "editable": true
314         }
315       }
316     }
317   }
318 ]