diff options
author | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-24 17:34:04 +0300 |
---|---|---|
committer | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-25 11:39:10 +0300 |
commit | a52d50e788792a63e97a9176ab319d53db7a2853 (patch) | |
tree | b1c2222cacf4b8192aea16d1e0315b1f005c5347 /distribution/src/main/assembly | |
parent | 3c2665debb400aef7f0ed9e235698d2ff9f859db (diff) |
Replaced old implementation at root
Old project files and directories has been moved
under 'deprecated-workflow-designer'. The old project
is not built by the CI anymore, but can be still built manually.
New modules/directories have been moved up and integrated with
the CI system.
Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf
Issue-ID: SDC-1559
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'distribution/src/main/assembly')
-rw-r--r-- | distribution/src/main/assembly/bin/find_kill_process.bat | 20 | ||||
-rw-r--r-- | distribution/src/main/assembly/bin/run.bat | 37 | ||||
-rw-r--r-- | distribution/src/main/assembly/bin/run.sh | 31 | ||||
-rw-r--r-- | distribution/src/main/assembly/bin/stop.bat | 30 | ||||
-rw-r--r-- | distribution/src/main/assembly/bin/stop.sh | 39 | ||||
-rw-r--r-- | distribution/src/main/assembly/conf/workflow-designer.yml | 63 | ||||
-rw-r--r-- | distribution/src/main/assembly/ext-activities-display-info.json | 29 | ||||
-rw-r--r-- | distribution/src/main/assembly/ext-activities.json | 218 | ||||
-rw-r--r-- | distribution/src/main/assembly/temp_workflow.json | 189 |
9 files changed, 0 insertions, 656 deletions
diff --git a/distribution/src/main/assembly/bin/find_kill_process.bat b/distribution/src/main/assembly/bin/find_kill_process.bat deleted file mode 100644 index 6e08993f..00000000 --- a/distribution/src/main/assembly/bin/find_kill_process.bat +++ /dev/null @@ -1,20 +0,0 @@ -@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/distribution/src/main/assembly/bin/run.bat b/distribution/src/main/assembly/bin/run.bat deleted file mode 100644 index 40467718..00000000 --- a/distribution/src/main/assembly/bin/run.bat +++ /dev/null @@ -1,37 +0,0 @@ -@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/distribution/src/main/assembly/bin/run.sh b/distribution/src/main/assembly/bin/run.sh deleted file mode 100644 index 05d0dfd8..00000000 --- a/distribution/src/main/assembly/bin/run.sh +++ /dev/null @@ -1,31 +0,0 @@ -# -# 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/distribution/src/main/assembly/bin/stop.bat b/distribution/src/main/assembly/bin/stop.bat deleted file mode 100644 index 4407a449..00000000 --- a/distribution/src/main/assembly/bin/stop.bat +++ /dev/null @@ -1,30 +0,0 @@ -@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/distribution/src/main/assembly/bin/stop.sh b/distribution/src/main/assembly/bin/stop.sh deleted file mode 100644 index 3fe6d60d..00000000 --- a/distribution/src/main/assembly/bin/stop.sh +++ /dev/null @@ -1,39 +0,0 @@ -# -# 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/distribution/src/main/assembly/conf/workflow-designer.yml b/distribution/src/main/assembly/conf/workflow-designer.yml deleted file mode 100644 index 9b35b261..00000000 --- a/distribution/src/main/assembly/conf/workflow-designer.yml +++ /dev/null @@ -1,63 +0,0 @@ -# -# 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/distribution/src/main/assembly/ext-activities-display-info.json b/distribution/src/main/assembly/ext-activities-display-info.json deleted file mode 100644 index 72056a5d..00000000 --- a/distribution/src/main/assembly/ext-activities-display-info.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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/distribution/src/main/assembly/ext-activities.json b/distribution/src/main/assembly/ext-activities.json deleted file mode 100644 index 6defc343..00000000 --- a/distribution/src/main/assembly/ext-activities.json +++ /dev/null @@ -1,218 +0,0 @@ -[ - { - "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/distribution/src/main/assembly/temp_workflow.json b/distribution/src/main/assembly/temp_workflow.json deleted file mode 100644 index 3b3fa1c1..00000000 --- a/distribution/src/main/assembly/temp_workflow.json +++ /dev/null @@ -1,189 +0,0 @@ -{
- "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": []
- }
- ]
- }
-}
|