summaryrefslogtreecommitdiffstats
path: root/wfenginemgrservice
diff options
context:
space:
mode:
Diffstat (limited to 'wfenginemgrservice')
-rw-r--r--wfenginemgrservice/src/main/docker/bin/conf/auth-config.properties3
-rw-r--r--wfenginemgrservice/src/main/docker/bin/conf/workflow.yml49
-rw-r--r--wfenginemgrservice/src/main/docker/bin/run.sh55
-rw-r--r--wfenginemgrservice/src/main/docker/bin/setenv.sh20
-rw-r--r--wfenginemgrservice/src/main/docker/bin/stop.sh52
5 files changed, 179 insertions, 0 deletions
diff --git a/wfenginemgrservice/src/main/docker/bin/conf/auth-config.properties b/wfenginemgrservice/src/main/docker/bin/conf/auth-config.properties
new file mode 100644
index 0000000..963ff50
--- /dev/null
+++ b/wfenginemgrservice/src/main/docker/bin/conf/auth-config.properties
@@ -0,0 +1,3 @@
+filterFree=oauth2,.html,.css,.js,.png,.properties,.gif,.jpg,.ttf,.woff,.ico,password,activealarms/export,timingreport/download
+#according to witch way to regist operation code: rest or mq , case insensitive
+operation_model_load_channel=rest \ No newline at end of file
diff --git a/wfenginemgrservice/src/main/docker/bin/conf/workflow.yml b/wfenginemgrservice/src/main/docker/bin/conf/workflow.yml
new file mode 100644
index 0000000..ce257b6
--- /dev/null
+++ b/wfenginemgrservice/src/main/docker/bin/conf/workflow.yml
@@ -0,0 +1,49 @@
+apidescription: ACTIVITI EXT rest API
+
+# use the simple server factory if you only want to run on a single port
+#server:
+# type: simple
+# connector:
+# type: http
+# port: 12003
+server:
+ type: simple
+ rootPath: '/api/workflow/v1/*'
+ applicationContextPath: /
+ adminContextPath: /admin
+ connector:
+ type: http
+ port: 8804
+
+# Logging settings.
+logging:
+
+ # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
+ level: INFO
+
+ # Logger-specific levels.
+ loggers:
+
+ # Sets the level for 'com.example.app' to DEBUG.
+ org.onap.workflow.WorkflowApp: DEBUG
+
+ appenders:
+ # - type: console
+ # threshold: INFO
+ # timeZone: UTC
+ # logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
+ - 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/workflow.log
+ archivedLogFilenamePattern: ./works/logs/zip/workflow-%d{yyyy-MM-dd}.log.gz
+ archivedFileCount: 7
+ timeZone: UTC
+
+msbClientConfig:
+ msbSvrIp: 127.0.0.1
+ msbSvrPort: 80 \ No newline at end of file
diff --git a/wfenginemgrservice/src/main/docker/bin/run.sh b/wfenginemgrservice/src/main/docker/bin/run.sh
new file mode 100644
index 0000000..002ed1b
--- /dev/null
+++ b/wfenginemgrservice/src/main/docker/bin/run.sh
@@ -0,0 +1,55 @@
+#
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+
+if [ -f "$RUNHOME/setenv.sh" ]; then
+ . "$RUNHOME/setenv.sh"
+else
+echo "can not found $RUNHOME/setenv.sh"
+fi
+
+echo ================== ENV_INFO =============================================
+echo @RUNHOME@ $RUNHOME
+echo @Main_Class@ $Main_Class
+echo @APP_INFO@ $APP_INFO
+echo @Main_JAR@ $Main_JAR
+echo @Main_Conf@ $Main_Conf
+echo ==========================================================================
+
+echo start $APP_INFO ...
+
+JAVA="$JAVA_HOME/bin/java"
+JAVA_OPTS="-Xms50m -Xmx128m"
+#port=26000
+#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
+CLASS_PATH="$EXT_DIRS:$RUNHOME/:$RUNHOME/$Main_JAR"
+
+echo ================== RUN_INFO =============================================
+echo @JAVA_HOME@ $JAVA_HOME
+echo @JAVA@ $JAVA
+echo @JAVA_OPTS@ $JAVA_OPTS
+echo @CLASS_PATH@ $CLASS_PATH
+echo @EXT_DIRS@ $EXT_DIRS
+echo ==========================================================================
+
+echo @JAVA@ $JAVA
+echo @JAVA_CMD@
+"$JAVA" $JAVA_OPTS -classpath "$CLASS_PATH" $Main_Class server "$RUNHOME/$Main_Conf"
+
diff --git a/wfenginemgrservice/src/main/docker/bin/setenv.sh b/wfenginemgrservice/src/main/docker/bin/setenv.sh
new file mode 100644
index 0000000..ec87b1a
--- /dev/null
+++ b/wfenginemgrservice/src/main/docker/bin/setenv.sh
@@ -0,0 +1,20 @@
+#
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+Main_Class="org.onap.workflow.WorkflowApp"
+Main_JAR="workflow-engine-mgr-service.jar"
+Main_Conf="conf/workflow.yml"
+APP_INFO="WorkFlowMgr"
diff --git a/wfenginemgrservice/src/main/docker/bin/stop.sh b/wfenginemgrservice/src/main/docker/bin/stop.sh
new file mode 100644
index 0000000..a542ce8
--- /dev/null
+++ b/wfenginemgrservice/src/main/docker/bin/stop.sh
@@ -0,0 +1,52 @@
+#
+# Copyright 2017 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+
+if [ -f "$RUNHOME/setenv.sh" ]; then
+ . "$RUNHOME/setenv.sh"
+else
+echo "can not found $RUNHOME/setenv.sh"
+fi
+
+
+echo ================== ENV_INFO =============================================
+echo RUNHOME=$RUNHOME
+echo Main_Class=$Main_Class
+echo APP_INFO=$APP_INFO
+echo ==========================================================================
+
+
+cd $RUNHOME; pwd
+
+function save_app_pid(){
+ app_id=`ps -ef | grep $Main_Class| grep $RUNHOME | grep -v grep | awk '{print $2}'`
+ echo @app_id@ $app_id
+}
+
+function kill_app_process(){
+ ps -p $app_id
+ if [ $? == 0 ]; then
+ kill -9 $app_id
+ fi
+}
+
+save_app_pid;
+echo @C_CMD@ kill -9 $app_id
+kill_app_process; \ No newline at end of file