aboutsummaryrefslogtreecommitdiffstats
path: root/deprecated-workflow-designer/distribution/src/main/assembly
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated-workflow-designer/distribution/src/main/assembly')
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat20
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat37
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh31
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat30
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh39
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml63
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json29
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json218
-rw-r--r--deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json189
9 files changed, 656 insertions, 0 deletions
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat
new file mode 100644
index 00000000..9d129ee5
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/find_kill_process.bat
@@ -0,0 +1,20 @@
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+echo %1 | findstr %2 >NUL
+echo ERRORLEVEL=%ERRORLEVEL%
+IF ERRORLEVEL 1 goto findend
+for /f "tokens=1" %%a in (%1) do (
+ echo kill %1
+ taskkill /F /pid %%a
+)
+:findend \ No newline at end of file
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat
new file mode 100644
index 00000000..63f3dcd5
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.bat
@@ -0,0 +1,37 @@
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+@echo off
+title sdc-workflow-designer
+
+set RUNHOME=%~dp0
+echo ### RUNHOME: %RUNHOME%
+echo ### Starting sdc-workflow-designer
+set main_path=%RUNHOME%..\
+cd /d %main_path%
+set JAVA="%JAVA_HOME%\bin\java.exe"
+set port=12345
+set jvm_opts=-Xms50m -Xmx128m
+set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n
+set class_path=%main_path%;%main_path%sdc-workflow-designer.jar
+echo ### jvm_opts: %jvm_opts%
+echo ### class_path: %class_path%
+
+%JAVA% -classpath %class_path% %jvm_opts% org.onap.sdc.workflowdesigner.WorkflowDesignerApp server %main_path%conf/workflow-designer.yml
+
+IF ERRORLEVEL 1 goto showerror
+exit
+:showerror
+echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!
+echo After checking, press any key to close
+pause
+exit \ No newline at end of file
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh
new file mode 100644
index 00000000..05d0dfd8
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/run.sh
@@ -0,0 +1,31 @@
+#
+# Copyright (c) 2017 ZTE Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# and the Apache License 2.0 which both accompany this distribution,
+# and are available at http://www.eclipse.org/legal/epl-v10.html
+# and http://www.apache.org/licenses/LICENSE-2.0
+#
+# Contributors:
+# ZTE - initial API and implementation and/or initial documentation
+#
+
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo @JAVA_HOME@ $JAVA_HOME
+JAVA="$JAVA_HOME/bin/java"
+echo @JAVA@ $JAVA
+main_path=$RUNHOME/../
+cd $main_path
+JAVA_OPTS="-Xms50m -Xmx128m"
+port=12345
+JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
+echo @JAVA_OPTS@ $JAVA_OPTS
+
+class_path="$main_path/:$main_path/sdc-workflow-designer.jar"
+echo @class_path@ $class_path
+
+"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.sdc.workflowdesigner.WorkflowDesignerApp server "$main_path/conf/workflow-designer.yml"
+
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat
new file mode 100644
index 00000000..974d41b6
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.bat
@@ -0,0 +1,30 @@
+@REM
+@REM Copyright (c) 2017 ZTE Corporation.
+@REM All rights reserved. This program and the accompanying materials
+@REM are made available under the terms of the Eclipse Public License v1.0
+@REM and the Apache License 2.0 which both accompany this distribution,
+@REM and are available at http://www.eclipse.org/legal/epl-v10.html
+@REM and http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Contributors:
+@REM ZTE - initial API and implementation and/or initial documentation
+@REM
+
+@echo off
+title stopping sdc-workflow-designer
+
+set HOME=%~dp0
+set Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp"
+
+echo ================== sdc-workflow-designer info =============================================
+echo HOME=$HOME
+echo Main_Class=%Main_Class%
+echo ===============================================================================
+
+echo ### Stopping sdc-workflow-designer
+cd /d %HOME%
+
+for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (
+ call find_kill_process "%%i" %Main_Class%
+)
+exit \ No newline at end of file
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh
new file mode 100644
index 00000000..3fe6d60d
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/bin/stop.sh
@@ -0,0 +1,39 @@
+#
+# Copyright (c) 2017 ZTE Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# and the Apache License 2.0 which both accompany this distribution,
+# and are available at http://www.eclipse.org/legal/epl-v10.html
+# and http://www.apache.org/licenses/LICENSE-2.0
+#
+# Contributors:
+# ZTE - initial API and implementation and/or initial documentation
+#
+
+DIRNAME=`dirname $0`
+HOME=`cd $DIRNAME/; pwd`
+Main_Class="org.onap.sdc.workflowdesigner.WorkflowDesignerApp"
+
+echo ================== sdc-workflow-designer info =============================================
+echo HOME=$HOME
+echo Main_Class=$Main_Class
+echo ===============================================================================
+cd $HOME; pwd
+
+echo @WORK_DIR@ $HOME
+
+function save_service_pid(){
+ service_pid=`ps -ef | grep $Main_Class | grep -v grep | awk '{print $2}'`
+ echo @service_pid@ $service_pid
+}
+
+function kill_service_process(){
+ ps -p $service_pid
+ if [ $? == 0 ]; then
+ kill -9 $service_pid
+ fi
+}
+
+save_service_pid;
+echo @C_CMD@ kill -9 $service_pid
+kill_service_process; \ No newline at end of file
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml b/deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml
new file mode 100644
index 00000000..9b35b261
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/conf/workflow-designer.yml
@@ -0,0 +1,63 @@
+#
+# Copyright (c) 2017 ZTE Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the Apache License, Version 2.0
+# and the Eclipse Public License v1.0 which both accompany this distribution,
+# and are available at http://www.eclipse.org/legal/epl-v10.html
+# and http://www.apache.org/licenses/LICENSE-2.0
+#
+# Contributors:
+# ZTE - initial API and implementation and/or initial documentation
+#
+
+template: Hello, %s!
+
+defaultName: ${DW_DEFAULT_NAME:-Stranger}
+
+adapterType: SDC
+
+sdcServiceProxy:
+ serviceAddr: http://127.0.0.1:8080
+ xEcompInstanceId: workflow
+ authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
+
+activitySpecServiceProxy:
+ serviceAddr: http://127.0.0.1:8090
+ xEcompInstanceId: workflow
+ userId: workflow
+ authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
+
+# use the simple server factory if you only want to run on a single port
+server:
+ type: simple
+ rootPath: '/api/workflow-modeler/v1/*'
+ applicationContextPath: /
+ adminContextPath: /admin
+ connector:
+ type: http
+ port: 8080
+
+# Logging settings.
+logging:
+
+ # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
+ level: ALL
+
+ # Logger-specific levels.
+ loggers:
+
+ # Sets the level for 'com.example.app' to DEBUG.
+ org.onap.sdc.workflowdesigner.WorkflowDesignerApp: INFO
+
+ appenders:
+ - type: console
+ threshold: INFO
+ timeZone: UTC
+ logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
+ - type: file
+ threshold: INFO
+ logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
+ currentLogFilename: ./works/logs/wfd.log
+ archivedLogFilenamePattern: ./works/logs/zip/wfd-%d{yyyy-MM-dd}.log.gz
+ archivedFileCount: 7
+ timeZone: UTC
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json
new file mode 100644
index 00000000..72056a5d
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities-display-info.json
@@ -0,0 +1,29 @@
+{
+ "nodes": {
+ "apds_script": {
+ },
+ "apds_service": {
+ },
+ "apds_scriptA": {
+ "category": "aaa"
+ },
+ "apds_scriptB": {
+ "category": "aaa"
+ },
+ "apds_serviceA": {
+ "category": "aaa"
+ },
+ "apds_serviceB": {
+ "category": "aaa"
+ }
+ },
+ "categoryData": {
+ "aaa": {
+ "displayName": {
+ "zh_CN": "扩展任务",
+ "en_US": "Extension Task"
+ },
+ "collapse": true
+ }
+ }
+}
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json
new file mode 100644
index 00000000..6defc343
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/ext-activities.json
@@ -0,0 +1,218 @@
+[
+ {
+ "id": "apds_service",
+ "displayName": {
+ "zh_CN": "Service",
+ "en_US": "Service"
+ },
+ "description": {
+ "zh_CN": "JAVA 节点",
+ "en_US": "JAVA Node"
+ },
+ "type": "serviceTask",
+ "icon": {
+ "name": "apds_service",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "class": "",
+ "inputs": {}
+ }
+ },
+ {
+ "id": "apds_script",
+ "displayName": {
+ "zh_CN": "默认脚本",
+ "en_US": "Script"
+ },
+ "description": {
+ "zh_CN": "脚本节点",
+ "en_US": "Script Node"
+ },
+ "type": "scriptTask",
+ "icon": {
+ "name": "apds_script",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "scriptFormat": "",
+ "script": ""
+ }
+ },
+ {
+ "id": "apds_scriptA",
+ "displayName": {
+ "zh_CN": "Stop traffic",
+ "en_US": "Stop traffic"
+ },
+ "description": {
+ "zh_CN": "Stop traffic",
+ "en_US": "Stop traffic"
+ },
+ "type": "scriptTask",
+ "icon": {
+ "name": "apds_script",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "scriptFormat": "JavaScript",
+ "script": "abc"
+ }
+ },
+ {
+ "id": "apds_scriptB",
+ "displayName": {
+ "zh_CN": "Drain traffic",
+ "en_US": "Drain traffic"
+ },
+ "description": {
+ "zh_CN": "Drain traffic",
+ "en_US": "Drain traffic"
+ },
+ "type": "scriptTask",
+ "icon": {
+ "name": "apds_script",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "scriptFormat": "Groovy",
+ "script": "xyz"
+ }
+ },
+ {
+ "id": "apds_serviceA",
+ "displayName": {
+ "zh_CN": "Stop VNF",
+ "en_US": "Stop VNF"
+ },
+ "description": {
+ "zh_CN": "Stop VNF",
+ "en_US": "Stop VNF"
+ },
+ "type": "serviceTask",
+ "icon": {
+ "name": "apds_service",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "class": "org.onap.sdc.workflow.task.StopVNFDelegate",
+ "inputs": {
+ "param1": {
+ "type": "string",
+ "default": "default",
+ "required": false,
+ "displayName": {
+ "zh_CN": "参数1",
+ "en_US": "Param1"
+ },
+ "show": true,
+ "editable": true
+ },
+ "param2": {
+ "type": "string",
+ "required": true,
+ "displayName": {
+ "zh_CN": "参数2",
+ "en_US": "Param2"
+ },
+ "show": true,
+ "editable": true
+ },
+ "param3": {
+ "type": "string",
+ "default": "value3",
+ "required": true,
+ "displayName": {
+ "zh_CN": "参数3",
+ "en_US": "Param3"
+ },
+ "show": true,
+ "editable": false
+ }
+ },
+ "outputs": {
+ "out1": {
+ "type": "string",
+ "required": false,
+ "displayName": {
+ "zh_CN": "输出1",
+ "en_US": "Output Param 1"
+ },
+ "show": true,
+ "editable": true
+ }
+ }
+ }
+ },
+ {
+ "id": "apds_serviceB",
+ "displayName": {
+ "zh_CN": "Create VNF",
+ "en_US": "Create VNF"
+ },
+ "description": {
+ "zh_CN": "Create VNF",
+ "en_US": "Create VNF"
+ },
+ "type": "serviceTask",
+ "icon": {
+ "name": "apds_service",
+ "width": 56,
+ "height": 56
+ },
+ "content": {
+ "class": "org.onap.sdc.workflow.task.CreateVNFDelegate",
+ "inputs": {
+ "id": {
+ "type": "string",
+ "default": "default",
+ "required": false,
+ "displayName": {
+ "zh_CN": "id",
+ "en_US": "id"
+ },
+ "show": true,
+ "editable": true
+ },
+ "name": {
+ "type": "string",
+ "required": true,
+ "displayName": {
+ "zh_CN": "name",
+ "en_US": "name"
+ },
+ "show": true,
+ "editable": true
+ },
+ "type": {
+ "type": "string",
+ "default": "value3",
+ "required": true,
+ "displayName": {
+ "zh_CN": "type",
+ "en_US": "type"
+ },
+ "show": true,
+ "editable": false
+ }
+ },
+ "outputs": {
+ "status": {
+ "type": "string",
+ "required": false,
+ "displayName": {
+ "zh_CN": "status",
+ "en_US": "status of vnf"
+ },
+ "show": true,
+ "editable": true
+ }
+ }
+ }
+ }
+]
diff --git a/deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json b/deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json
new file mode 100644
index 00000000..112372ec
--- /dev/null
+++ b/deprecated-workflow-designer/distribution/src/main/assembly/temp_workflow.json
@@ -0,0 +1,189 @@
+{
+ "id": "id12345",
+ "name": "test",
+ "scene": "abcd",
+ "data": {
+ "nodes": [
+ {
+ "id": "startEvent",
+ "type": "startEvent",
+ "name": "Start",
+ "parentId": "root",
+ "position": {
+ "left": 73,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "startEvent",
+ "targetRef": "scriptTask"
+ }
+ ],
+ "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": [
+ {
+ "sourceRef": "scriptTask",
+ "targetRef": "scriptTask_2"
+ }
+ ],
+ "scriptFormat": "JavaScript",
+ "script": "abc"
+ },
+ {
+ "id": "scriptTask_2",
+ "type": "scriptTask",
+ "typeId": "apds_scriptB",
+ "icon": "apds_script",
+ "name": "Drain traffic",
+ "parentId": "root",
+ "position": {
+ "left": 289,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "scriptTask_2",
+ "targetRef": "serviceTask"
+ }
+ ],
+ "scriptFormat": "Groovy",
+ "script": "xyz"
+ },
+ {
+ "id": "serviceTask",
+ "type": "serviceTask",
+ "typeId": "apds_serviceA",
+ "icon": "apds_service",
+ "name": "Stop VNF",
+ "parentId": "root",
+ "position": {
+ "left": 392,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "sourceRef": "serviceTask",
+ "targetRef": "serviceTask_2"
+ }
+ ],
+ "className": "",
+ "inputs": [
+ {
+ "name": "param1",
+ "value": "default",
+ "valueSource": "string",
+ "type": "string",
+ "required": false,
+ "show": true,
+ "errorMsg": ""
+ },
+ {
+ "name": "param2",
+ "value": null,
+ "valueSource": "string",
+ "type": "string",
+ "required": true,
+ "show": true,
+ "errorMsg": ""
+ },
+ {
+ "name": "param3",
+ "value": "value3",
+ "valueSource": "string",
+ "type": "string",
+ "required": true,
+ "show": true,
+ "errorMsg": ""
+ }
+ ],
+ "outputs": [
+ {
+ "name": "out1",
+ "value": null,
+ "valueSource": "string",
+ "type": "string",
+ "required": false,
+ "show": true,
+ "errorMsg": ""
+ }
+ ]
+ },
+ {
+ "id": "serviceTask_2",
+ "type": "serviceTask",
+ "typeId": "apds_serviceB",
+ "icon": "apds_service",
+ "name": "Create VNF",
+ "parentId": "root",
+ "position": {
+ "left": 500,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": [
+ {
+ "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"
+ }
+ ],
+ "className": "",
+ "inputs": [],
+ "outputs": []
+ },
+ {
+ "id": "endEvent",
+ "type": "endEvent",
+ "name": "End",
+ "parentId": "root",
+ "position": {
+ "left": 744,
+ "top": 160,
+ "width": 56,
+ "height": 56
+ },
+ "connection": []
+ }
+ ]
+ }
+}