From b2bac7b347106c9dd86ba23b0133f5984779f382 Mon Sep 17 00:00:00 2001 From: YuanHu Date: Tue, 17 Apr 2018 14:52:18 +0800 Subject: Modify the examples Add example for Stop traffic, Drain traffic, Stop VNF, Create VNF, etc. Issue-ID: SDC-1210 Change-Id: I4f1859a35ebd2c37a24e50549aae3e5c4713ace4 Signed-off-by: YuanHu --- distribution/src/main/assembly/temp_workflow.json | 152 ++++++++++++++-------- 1 file changed, 99 insertions(+), 53 deletions(-) (limited to 'distribution/src/main/assembly/temp_workflow.json') diff --git a/distribution/src/main/assembly/temp_workflow.json b/distribution/src/main/assembly/temp_workflow.json index f12f892e..3b3fa1c1 100644 --- a/distribution/src/main/assembly/temp_workflow.json +++ b/distribution/src/main/assembly/temp_workflow.json @@ -5,109 +5,121 @@ "data": { "nodes": [ { - "id": "node0", + "id": "startEvent", "type": "startEvent", "name": "Start", "parentId": "root", "position": { - "left": 99, - "top": 131, + "left": 73, + "top": 160, "width": 56, "height": 56 }, "connection": [ { - "sourceRef": "node0", - "targetRef": "serviceTask" + "sourceRef": "startEvent", + "targetRef": "scriptTask" } ], - "parameters": [ - { - "name": "aaa", - "value": "a111", - "valueSource": "string", - "type": "string", - "required": false, - "show": true, - "errorMsg": "" - }, + "parameters": [] + }, + { + "id": "scriptTask", + "type": "scriptTask", + "typeId": "apds_scriptA", + "icon": "apds_script", + "name": "Stop traffic", + "parentId": "root", + "position": { + "left": 175, + "top": 160, + "width": 56, + "height": 56 + }, + "connection": [ { - "name": "bbb", - "value": "b111", - "valueSource": "string", - "type": "string", - "required": false, - "show": true, - "errorMsg": "" + "sourceRef": "scriptTask", + "targetRef": "scriptTask_2" } - ] + ], + "scriptFormat": "JavaScript", + "script": "abc" }, { - "id": "node2", - "type": "endEvent", - "name": "End", + "id": "scriptTask_2", + "type": "scriptTask", + "typeId": "apds_scriptB", + "icon": "apds_script", + "name": "Drain traffic", "parentId": "root", "position": { - "left": 459, - "top": 131, + "left": 289, + "top": 160, "width": 56, "height": 56 }, - "connection": [] + "connection": [ + { + "sourceRef": "scriptTask_2", + "targetRef": "serviceTask" + } + ], + "scriptFormat": "Groovy", + "script": "xyz" }, { "id": "serviceTask", "type": "serviceTask", "typeId": "apds_serviceA", "icon": "apds_service", - "name": "Java Task", + "name": "Stop VNF", "parentId": "root", "position": { - "left": 232, - "top": 131, + "left": 392, + "top": 160, "width": 56, "height": 56 }, "connection": [ { "sourceRef": "serviceTask", - "targetRef": "scriptTask" + "targetRef": "serviceTask_2" } ], - "className": "org.onap.sdc.workflowdesigner.JavaTask", + "className": "", "inputs": [ { "name": "param1", + "value": "default", "valueSource": "string", "type": "string", "required": false, "show": true, - "errorMsg": "", - "value": "a111" + "errorMsg": "" }, { "name": "param2", + "value": null, "valueSource": "string", "type": "string", "required": true, "show": true, - "errorMsg": "", - "value": "b111" + "errorMsg": "" }, { "name": "param3", + "value": "value3", "valueSource": "string", "type": "string", "required": true, "show": true, - "errorMsg": "", - "value": "c111" + "errorMsg": "" } ], "outputs": [ { "name": "out1", - "value": "", + "value": null, "valueSource": "string", "type": "string", "required": false, @@ -117,27 +129,61 @@ ] }, { - "id": "scriptTask", - "type": "scriptTask", - "typeId": "apds_scriptB", - "icon": "apds_script", - "name": "Groovy Task", + "id": "serviceTask_2", + "type": "serviceTask", + "typeId": "apds_serviceB", + "icon": "apds_service", + "name": "Create VNF", "parentId": "root", "position": { - "left": 335, - "top": 131, + "left": 500, + "top": 160, "width": 56, "height": 56 }, "connection": [ { - "sourceRef": "scriptTask", - "targetRef": "node2" + "sourceRef": "serviceTask_2", + "targetRef": "serviceTask_3" + } + ] + }, + { + "id": "serviceTask_3", + "type": "serviceTask", + "typeId": "apds_service", + "icon": "apds_service", + "name": "Start VNF", + "parentId": "root", + "position": { + "left": 620, + "top": 160, + "width": 56, + "height": 56 + }, + "connection": [ + { + "sourceRef": "serviceTask_3", + "targetRef": "endEvent" } ], - "scriptFormat": "Groovy", - "script": "xyz" + "className": "", + "inputs": [], + "outputs": [] + }, + { + "id": "endEvent", + "type": "endEvent", + "name": "End", + "parentId": "root", + "position": { + "left": 744, + "top": 160, + "width": 56, + "height": 56 + }, + "connection": [] } ] } -} \ No newline at end of file +} -- cgit 1.2.3-korg