From c0604184b2aa8cff924ca783ec6b36f1f5988775 Mon Sep 17 00:00:00 2001 From: Zhaoxing Date: Tue, 8 Aug 2017 14:02:53 +0800 Subject: [PATCH] init code Change-Id: Icd0948118397b256da70dfbcbbec5520dc5eafd4 Signed-off-by: Zhaoxing --- wfenginemgrservice/pom.xml | 310 +++++++++++++++++++++ .../main/java/org/onap/workflow/WorkflowApp.java | 42 +++ .../java/org/onap/workflow/WorkflowAppConfig.java | 43 +++ .../onap/workflow/activitiext/common/ToolUtil.java | 52 ++++ .../workflow/activitiext/common/package-info.java | 16 ++ .../main/java/org/onap/workflow/common/Config.java | 31 +++ .../org/onap/workflow/common/EnumModuleUrl.java | 33 +++ .../java/org/onap/workflow/common/EnumStatus.java | 21 ++ .../java/org/onap/workflow/common/RestClient.java | 310 +++++++++++++++++++++ .../org/onap/workflow/common/RestClientUtils.java | 42 +++ .../org/onap/workflow/common/RestResponse.java | 37 +++ .../java/org/onap/workflow/common/ToolUtil.java | 67 +++++ .../org/onap/workflow/common/package-info.java | 16 ++ .../workflow/entity/DeployBpmnFileResponse.java | 31 +++ .../org/onap/workflow/entity/MsbClientConfig.java | 26 ++ .../onap/workflow/entity/StartProcessRequest.java | 33 +++ .../activitientitiy/ActivitiDeployResponse.java | 25 ++ .../ActivitiStartProcessRequest.java | 25 ++ .../ActivitiStartProcessRequestParam.java | 27 ++ .../entity/activitientitiy/package-info.java | 19 ++ .../activitiservice/ActivitiServiceConsumer.java | 142 ++++++++++ .../activitiservice/IActivitiRestService.java | 44 +++ .../service/activitiservice/package-info.java | 17 ++ .../onap/workflow/resources/WorkflowResource.java | 101 +++++++ .../java/org/onap/workflow/tools/Constants.java | 29 ++ .../onap/workflow/tools/HttpDeleteWithBody.java | 37 +++ .../org/onap/workflow/tools/RequestParameters.java | 35 +++ .../java/org/onap/workflow/tools/package-info.java | 17 ++ .../workflow/wrapper/WorkflowInstanceWrapper.java | 98 +++++++ .../src/main/resources/api-doc/index.html | 99 +++++++ wfenginemgrservice/src/main/resources/banner.txt | 6 + .gitattributes => wso2/.gitattributes | 0 .gitignore => wso2/.gitignore | 0 .gitreview => wso2/.gitreview | 0 License.txt => wso2/License.txt | 0 .../baseservice-i18n}/pom.xml | 0 .../baseservice/i18n/DefaultErrorCodeI18n.java | 0 .../openo/baseservice/i18n/DefaultI18nService.java | 0 .../openo/baseservice/i18n/ErrorCodeException.java | 0 .../org/openo/baseservice/i18n/ErrorCodeI18n.java | 0 .../main/java/org/openo/baseservice/i18n/I18n.java | 0 .../org/openo/baseservice/i18n/I18nContainer.java | 0 .../java/org/openo/baseservice/i18n/I18nImpl.java | 0 .../java/org/openo/baseservice/i18n/I18nItem.java | 0 .../org/openo/baseservice/i18n/I18nJsonUtil.java | 0 .../org/openo/baseservice/i18n/I18nService.java | 0 .../baseservice/i18n/JsonResourceScanner.java | 0 {common-util => wso2/common-util}/.gitignore | 0 {common-util => wso2/common-util}/pom.xml | 0 .../openo/baseservice/bus/util/BusConstant.java | 0 .../baseservice/bus/util/RegisterService.java | 0 .../bus/util/RegisterServiceListener.java | 0 .../baseservice/encrypt/cbb/CipherCreator.java | 0 .../baseservice/encrypt/cbb/impl/AesCipher.java | 0 .../encrypt/cbb/impl/AesCipherFactory.java | 0 .../encrypt/cbb/inf/AbstractCipher.java | 0 .../encrypt/cbb/inf/AbstractCipherFactory.java | 0 .../openo/baseservice/encrypt/cbb/sha/Sha256.java | 0 .../java/org/openo/baseservice/util/RestUtils.java | 0 .../util/impl/SystemEnvVariablesDefImpl.java | 0 .../util/impl/SystemEnvVariablesFactory.java | 0 .../baseservice/util/inf/SystemEnvVariables.java | 0 .../baseservice/bus/util/TestRegisterService.java | 0 .../bus/util/TestRegisterServiceListener.java | 0 .../encrypt/cbb/impl/AesCipherTest.java | 0 .../baseservice/encrypt/cbb/sha/Sha256Test.java | 0 .../org/openo/baseservice/util/RestUtilsTest.java | 0 .../util/impl/SystemEnvVariablesDefImplTest.java | 0 .../dropwizard-ioc-container}/pom.xml | 0 .../dropwizard/ioc/annotation/BaseService.java | 0 .../org/openo/dropwizard/ioc/annotation/Lazy.java | 0 .../dropwizard/ioc/annotation/PostBaseService.java | 0 .../dropwizard/ioc/annotation/PreBaseService.java | 0 .../openo/dropwizard/ioc/annotation/PreLoad.java | 0 .../dropwizard/ioc/annotation/PreServiceLoad.java | 0 .../dropwizard/ioc/bundle/AutoConfigBundle.java | 0 .../ioc/bundle/AutoConfigBundleBuider.java | 0 .../dropwizard/ioc/bundle/IOCApplication.java | 0 .../ioc/bundle/ServiceLocatorManaged.java | 0 .../openo/dropwizard/ioc/utils/ServiceBinder.java | 0 .../dropwizard/ioc/utils/ServiceLocatorHolder.java | 0 .../dropwizard/ioc/test/service/IOCBundleTest.java | 0 .../ioc/test/service/PreTestService.java | 0 .../dropwizard/ioc/test/service/TestService.java | 0 .../ioc/test/service/app/ExampleApp.java | 0 .../ioc/test/service/conf/TestConfiguration.java | 0 .../src/test/resources/example.yml | 0 {logging-sdk => wso2/logging-sdk}/pom.xml | 0 .../main/java/org/openo/log/api/LogMessage.java | 0 .../main/java/org/openo/log/api/LogService.java | 0 .../java/org/openo/log/api/OperLogMessage.java | 0 .../main/java/org/openo/log/api/SecLogMessage.java | 0 .../main/java/org/openo/log/api/SysLogMessage.java | 0 .../main/java/org/openo/log/impl/Facitility.java | 0 .../java/org/openo/log/impl/InsertLogHandler.java | 0 .../src/main/java/org/openo/log/impl/LogConst.java | 0 .../main/java/org/openo/log/impl/LogIdTool.java | 0 .../org/openo/log/test/TestLogback2Logstash.java | 0 .../src/main/java/org/openo/log/test/logback.xml | 0 pom.xml => wso2/pom.xml | 0 {rest-client => wso2/rest-client}/.gitignore | 0 {rest-client => wso2/rest-client}/pom.xml | 0 .../remoteservice/exception/ExceptionArgs.java | 0 .../remoteservice/exception/ServiceException.java | 0 .../openo/baseservice/roa/util/ReaderHelper.java | 0 .../roa/util/restclient/DefaultAsyncCallback.java | 0 .../roa/util/restclient/HttpBaseRest.java | 0 .../baseservice/roa/util/restclient/HttpRest.java | 0 .../util/restclient/RestHttpContentExchange.java | 0 .../baseservice/roa/util/restclient/Restful.java | 0 .../roa/util/restclient/RestfulAsyncCallback.java | 0 .../roa/util/restclient/RestfulClientConst.java | 0 .../roa/util/restclient/RestfulConfigure.java | 0 .../roa/util/restclient/RestfulFactory.java | 0 .../roa/util/restclient/RestfulOptions.java | 0 .../roa/util/restclient/RestfulParametes.java | 0 .../roa/util/restclient/RestfulResponse.java | 0 .../baseservice/roa/util/ReaderHelperTest.java | 0 .../baseservice/roa/util/TestServiceUtil.java | 0 .../roa/util/restclient/TestHttpRest.java | 0 .../restclient/TestRestHttpContentExchange.java | 0 .../roa/util/restclient/TestRestfulConfigure.java | 0 .../roa/util/restclient/TestRestfulFactory.java | 0 .../roa/util/restclient/TestRestfulOptions.java | 0 .../roa/util/restclient/TestRestfulParametes.java | 0 .../roa/util/restclient/TestRestfulResponse.java | 0 .../src/test/resources/etc/conf/restclient.json | 0 .../src/test/resources/rest-client-test.json | 0 {wso2bpel-ext => wso2/wso2bpel-ext}/pom.xml | 0 .../wso2bpel-core/BPEL4RESTLight/pom.xml | 0 .../Bpel4RestLightExtensionBundle.java | 0 .../bpel4restlight/Bpel4RestLightOperation.java | 0 .../bpel4restlight/EPRDemoOperation.java | 0 .../extensions/bpel4restlight/MethodAttribute.java | 0 .../bpel4restlight/util/Bpel4RestLightUtil.java | 0 .../iaas/bpel/util/BPELVariableInjectionUtil.java | 0 .../de/unistuttgart/iaas/bpel/util/BpelUtil.java | 0 .../de/unistuttgart/iaas/xml/DomXmlConverter.java | 0 .../de/unistuttgart/iaas/xml/XPathEvaluator.java | 0 .../bpel4restlight/rest/HighLevelRestApi.java | 0 .../opentosca/bpel4restlight/rest/HttpMethod.java | 0 .../bpel4restlight/rest/HttpResponseMessage.java | 0 .../bpel4restlight/rest/LowLevelRestApi.java | 0 .../wso2bpel-core/distribution/pom.xml | 0 .../wso2bpel-core/distribution/standalone/pom.xml | 0 .../standalone/src/main/assembly/initDB.sh | 0 .../standalone/src/main/assembly/run.bat | 0 .../standalone/src/main/assembly/run.sh | 0 .../standalone/src/main/assembly/stop.bat | 0 .../standalone/src/main/assembly/stop.sh | 0 .../assembly/wso2bps-ext/bin/find_kill_process.bat | 0 .../src/main/assembly/wso2bps-ext/bin/shutdown.bat | 0 .../src/main/assembly/wso2bps-ext/bin/shutdown.sh | 0 .../src/main/assembly/wso2bps-ext/bin/startup.bat | 0 .../src/main/assembly/wso2bps-ext/bin/startup.sh | 0 .../main/assembly/wso2bps-ext/conf/wso2bpel.yml | 0 .../assembly/wso2bps/bin/find_kill_process.bat | 0 .../src/main/assembly/wso2bps/bin/shutdown.bat | 0 .../src/main/assembly/wso2bps/bin/shutdown.sh | 0 .../wso2bps/dbscripts/bps/bpel/create/mysql.sql | 0 .../bps/bpel/create/wso-bpel-mysql-createdb.sql | 0 .../main/assembly/wso2bps/repository/conf/bps.xml | 0 .../wso2bps/repository/conf/carbon/bps.xml | 0 .../wso2bps/repository/conf/carbon/carbon.xml | 0 .../conf/datasources/activiti-datasources.xml | 0 .../conf/datasources/bps-datasources.xml | 0 .../conf/datasources/master-datasources.xml | 0 .../main/assembly/wso2bps/wso2bps-ext.properties | 0 .../wso2bpel-ext}/wso2bpel-core/pom.xml | 0 .../wso2bpel-core/wso2bpel-mgr/pom.xml | 0 .../org/openo/carbon/bpel/Wso2BpelApplication.java | 0 .../openo/carbon/bpel/Wso2BpelConfiguration.java | 0 .../java/org/openo/carbon/bpel/common/Config.java | 0 .../openo/carbon/bpel/common/ServiceRegistrer.java | 0 .../bpel/externalservice/entity/ServiceNode.java | 0 .../entity/ServiceRegisterEntity.java | 0 .../msb/MicroserviceBusConsumer.java | 0 .../externalservice/msb/MicroserviceBusRest.java | 0 .../openo/carbon/bpel/resources/BpsPackage.java | 0 .../openo/carbon/bpel/resources/BpsProcess.java | 0 .../carbon/bpel/resources/BpsServiceException.java | 0 .../openo/carbon/bpel/resources/RestAppConfig.java | 0 .../openo/carbon/bpel/util/ClientWsdlLoader.java | 0 .../java/org/openo/carbon/bpel/util/JsonUtil.java | 0 .../openo/carbon/bpel/util/LRULinkedHashMap.java | 0 .../java/org/openo/carbon/bpel/util/SoapUtil.java | 0 .../org/openo/carbon/bpel/util/Xml2JsonUtil.java | 0 .../main/resources/api-doc/META-INF/MANIFEST.MF | 0 .../src/main/resources/api-doc/WEB-INF/web.xml | 0 .../src/main/resources/api-doc/css/reset.css | 0 .../src/main/resources/api-doc/css/screen.css | 0 .../src/main/resources/api-doc/css/typography.css | 0 .../api-doc/fonts/droid-sans-v6-latin-700.eot | Bin .../api-doc/fonts/droid-sans-v6-latin-700.svg | 0 .../api-doc/fonts/droid-sans-v6-latin-700.ttf | Bin .../api-doc/fonts/droid-sans-v6-latin-700.woff | Bin .../api-doc/fonts/droid-sans-v6-latin-700.woff2 | Bin .../api-doc/fonts/droid-sans-v6-latin-regular.eot | Bin .../api-doc/fonts/droid-sans-v6-latin-regular.svg | 0 .../api-doc/fonts/droid-sans-v6-latin-regular.ttf | Bin .../api-doc/fonts/droid-sans-v6-latin-regular.woff | Bin .../fonts/droid-sans-v6-latin-regular.woff2 | Bin .../resources/api-doc/images/explorer_icons.png | Bin .../main/resources/api-doc/images/logo_small.png | Bin .../resources/api-doc/images/pet_store_api.png | Bin .../src/main/resources/api-doc/images/throbber.gif | Bin .../main/resources/api-doc/images/wordnik_api.png | Bin .../src/main/resources/api-doc/index.html | 0 .../src/main/resources/api-doc/lib/backbone-min.js | 0 .../main/resources/api-doc/lib/handlebars-2.0.0.js | 0 .../resources/api-doc/lib/highlight.7.3.pack.js | 0 .../main/resources/api-doc/lib/jquery-1.8.0.min.js | 0 .../resources/api-doc/lib/jquery.ba-bbq.min.js | 0 .../resources/api-doc/lib/jquery.slideto.min.js | 0 .../resources/api-doc/lib/jquery.wiggle.min.js | 0 .../src/main/resources/api-doc/lib/marked.js | 0 .../src/main/resources/api-doc/lib/shred.bundle.js | 0 .../main/resources/api-doc/lib/shred/content.js | 0 .../main/resources/api-doc/lib/swagger-client.js | 0 .../main/resources/api-doc/lib/swagger-oauth.js | 0 .../main/resources/api-doc/lib/underscore-min.js | 0 .../src/main/resources/api-doc/o2c.html | 0 .../src/main/resources/api-doc/swagger-ui.js | 0 .../src/main/resources/api-doc/swagger-ui.min.js | 0 .../wso2bpel-mgr/src/main/resources/banner.txt | 0 .../src/main/resources/config.properties | 0 .../wso2bpel-mgr/src/main/resources/migrations.xml | 0 .../src/main/resources/wso2-config.properties | 0 .../wso2bpel-ext}/wso2bpel-parent/pom.xml | 0 .../wso2bpel-parent/wso2bpelparent-lite/pom.xml | 0 .../wso2bpel-parent/wso2bpelparent/pom.xml | 0 231 files changed, 1831 insertions(+) create mode 100644 wfenginemgrservice/pom.xml create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/ToolUtil.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/package-info.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/Config.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumModuleUrl.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumStatus.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClientUtils.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/RestResponse.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/ToolUtil.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/common/package-info.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/entity/DeployBpmnFileResponse.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/entity/MsbClientConfig.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/entity/StartProcessRequest.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiDeployResponse.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequest.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequestParam.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/package-info.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/IActivitiRestService.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/package-info.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/resources/WorkflowResource.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/tools/Constants.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/tools/HttpDeleteWithBody.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/tools/RequestParameters.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/tools/package-info.java create mode 100644 wfenginemgrservice/src/main/java/org/onap/workflow/wrapper/WorkflowInstanceWrapper.java create mode 100644 wfenginemgrservice/src/main/resources/api-doc/index.html create mode 100644 wfenginemgrservice/src/main/resources/banner.txt rename .gitattributes => wso2/.gitattributes (100%) rename .gitignore => wso2/.gitignore (100%) rename .gitreview => wso2/.gitreview (100%) rename License.txt => wso2/License.txt (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/pom.xml (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18n.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18nContainer.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18nImpl.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18nItem.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/I18nService.java (100%) rename {baseservice-i18n => wso2/baseservice-i18n}/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java (100%) rename {common-util => wso2/common-util}/.gitignore (100%) rename {common-util => wso2/common-util}/pom.xml (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/bus/util/BusConstant.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/bus/util/RegisterService.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/util/RestUtils.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java (100%) rename {common-util => wso2/common-util}/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/util/RestUtilsTest.java (100%) rename {common-util => wso2/common-util}/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/pom.xml (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java (100%) rename {dropwizard-ioc-container => wso2/dropwizard-ioc-container}/src/test/resources/example.yml (100%) rename {logging-sdk => wso2/logging-sdk}/pom.xml (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/api/LogMessage.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/api/LogService.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/api/OperLogMessage.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/api/SecLogMessage.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/api/SysLogMessage.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/impl/Facitility.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/impl/InsertLogHandler.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/impl/LogConst.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/impl/LogIdTool.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/test/TestLogback2Logstash.java (100%) rename {logging-sdk => wso2/logging-sdk}/src/main/java/org/openo/log/test/logback.xml (100%) rename pom.xml => wso2/pom.xml (100%) rename {rest-client => wso2/rest-client}/.gitignore (100%) rename {rest-client => wso2/rest-client}/pom.xml (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java (100%) rename {rest-client => wso2/rest-client}/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java (100%) rename {rest-client => wso2/rest-client}/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java (100%) rename {rest-client => wso2/rest-client}/src/test/resources/etc/conf/restclient.json (100%) rename {rest-client => wso2/rest-client}/src/test/resources/rest-client-test.json (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-parent/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-parent/wso2bpelparent-lite/pom.xml (100%) rename {wso2bpel-ext => wso2/wso2bpel-ext}/wso2bpel-parent/wso2bpelparent/pom.xml (100%) diff --git a/wfenginemgrservice/pom.xml b/wfenginemgrservice/pom.xml new file mode 100644 index 0000000..b60df33 --- /dev/null +++ b/wfenginemgrservice/pom.xml @@ -0,0 +1,310 @@ + + + + + org.onap.oparent + oparent + 1.0.0-SNAPSHOT + + + 4.0.0 + workflow-engine-mgr-service + vfc/nfvo/wfengine/wfenginemgrservice + jar + + + 1.9.6 + 1.6.2 + 0.9.1 + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [2.0,) + + copy-dependencies + + + + + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + true + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.5.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-shade-plugin + 2.4 + + false + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + package + + shade + + + + + + com.onap.workflow.WorkflowApp + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + package + + copy-dependencies + + + + + io.dropwizard + dropwizard-core + ${dropwizard.version} + true + + + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.8 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-checkstyle-plugin + + + [2.17,) + + + check + + + + + + + + + + + + + + + + io.dropwizard + dropwizard-core + 0.8.0 + + + io.dropwizard + dropwizard-assets + 0.8.0 + + + io.dropwizard + dropwizard-hibernate + 0.8.0 + + + io.dropwizard + dropwizard-migrations + 0.8.0 + + + io.swagger + swagger-jersey2-jaxrs + 1.5.3 + + + org.projectlombok + lombok + 1.16.4 + + + org.glassfish.jersey.core + jersey-server + 2.16 + + + org.glassfish.jersey.media + jersey-media-multipart + 2.16 + + + org.glassfish.jersey.containers + jersey-container-servlet-core + 2.16 + + + com.eclipsesource.jaxrs + consumer + 5.0 + + + com.jcraft + jsch + 0.1.53 + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + 2.5.1 + + + com.fasterxml.jackson.core + jackson-annotations + 2.8.0 + + + com.google.code.gson + gson + 2.2.4 + + + dom4j + dom4j + 1.6.1 + + + io.dropwizard + dropwizard-jdbi + 0.8.0 + + + mysql + mysql-connector-java + 5.1.40 + + + commons-io + commons-io + 2.4 + + + org.apache.httpcomponents + httpcore + 4.4.1 + + + org.apache.httpcomponents + httpmime + 4.4.1 + + + junit + junit + 4.12 + + + org.powermock + powermock-module-junit4 + 1.6.1 + + + org.powermock + powermock-api-mockito + 1.6.1 + + + org.mockito + mockito-all + 1.9.5 + + + org.apache.ant + ant + 1.9.6 + + + org.slf4j + slf4j-api + 1.7.12 + + + diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java new file mode 100644 index 0000000..23f6ac6 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java @@ -0,0 +1,42 @@ +/** + * 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. + */ + +package org.onap.workflow; + +import org.glassfish.jersey.media.multipart.MultiPartFeature; +import org.onap.workflow.common.Config; + +import io.dropwizard.Application; +import io.dropwizard.setup.Environment; + +public class WorkflowApp extends Application { + + public static void main(String[] args) throws Exception { + new WorkflowApp().run(args); + } + + public String getName() { + return " Workflow APP "; + } + + @Override + public void run(WorkflowAppConfig configuration, Environment environment) throws Exception { + // TODO Auto-generated method stub + environment.jersey().register(MultiPartFeature.class); + + Config.setWorkflowAppConfig(configuration); + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java new file mode 100644 index 0000000..71985cc --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java @@ -0,0 +1,43 @@ +/** + * 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. + */ + +package org.onap.workflow; + +import javax.validation.Valid; + +import org.hibernate.validator.constraints.NotEmpty; +import org.onap.workflow.entity.MsbClientConfig; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.dropwizard.Configuration; + +public class WorkflowAppConfig extends Configuration { + + @NotEmpty + private String defaultName = "WORKFLOW-ACTIVITI-EXT"; + @NotEmpty + @JsonProperty + private String apidescription = "ZTE workflow-activiti-ext rest API"; + + @JsonProperty + @Valid + private MsbClientConfig msbClientConfig; + + public MsbClientConfig getMsbClientConfig() { + return msbClientConfig; + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/ToolUtil.java b/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/ToolUtil.java new file mode 100644 index 0000000..fe573e2 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/ToolUtil.java @@ -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. + */ +package org.onap.workflow.activitiext.common; + +import java.io.IOException; +import java.io.InputStream; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + +public class ToolUtil { + private static final Logger logger = LoggerFactory.getLogger(ToolUtil.class); + public static boolean isEmptyString(String val) { + return ((val == null || "".equals(val)) ? true : false); + } + + public static boolean isTrimedEmptyString(String val) { + return ((val == null || "".equals(val.trim())) ? true : false); + } + + public static boolean isTrimedEmptyArray(String[] val) { + return ((val == null || val.length == 0) ? true : false); + } + + /** + * @param ins + */ + public static void closeInputStream(InputStream ins) { + if (ins != null) { + try { + ins.close(); + } catch (IOException e) { + logger.info("Close InputStream failed.", e); + } + } + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/package-info.java b/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/package-info.java new file mode 100644 index 0000000..d64450f --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/package-info.java @@ -0,0 +1,16 @@ +/** + * 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. + */ +package org.onap.workflow.activitiext.common; \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/Config.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/Config.java new file mode 100644 index 0000000..49dc227 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/Config.java @@ -0,0 +1,31 @@ +/** + * 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. + */ + +package org.onap.workflow.common; + +import org.onap.workflow.WorkflowAppConfig; + +public class Config { + private static WorkflowAppConfig workflowAppConfig; + + public static WorkflowAppConfig getWorkflowAppConfig() { + return workflowAppConfig; + } + + public static void setWorkflowAppConfig(WorkflowAppConfig config) { + workflowAppConfig = config; + } +} \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumModuleUrl.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumModuleUrl.java new file mode 100644 index 0000000..00f10d8 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumModuleUrl.java @@ -0,0 +1,33 @@ +/** + * Copyright 2017 [ZTE] and others. + * + * 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. + */ +package org.onap.workflow.common; + +public enum EnumModuleUrl { + ACTIVITI { + @Override + public String getApiRootDomain() { + return "/activiti-rest/service"; + } + }; + + public abstract String getApiRootDomain(); + + public static String getBaseUrl(EnumModuleUrl enumUrl) { + String msbHost = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp(); + return "http://" + msbHost + ":" + "80" + enumUrl.getApiRootDomain(); + } + +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumStatus.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumStatus.java new file mode 100644 index 0000000..e2d1c5c --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumStatus.java @@ -0,0 +1,21 @@ +/** + * 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. + */ + +package org.onap.workflow.common; + +public enum EnumStatus { + SUCCESS, FAIL +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java new file mode 100644 index 0000000..f037757 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java @@ -0,0 +1,310 @@ +/** + * 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. + */ +package org.onap.workflow.common; + +import java.io.IOException; + +import org.apache.http.HttpEntity; +import org.apache.http.HttpHost; +import org.apache.http.HttpRequest; +import org.apache.http.HttpResponse; +import org.apache.http.client.ClientProtocolException; +import org.apache.http.client.ResponseHandler; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpDelete; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.client.methods.HttpPut; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.BasicResponseHandler; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.util.EntityUtils; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiStartProcessRequest; +import org.onap.workflow.tools.Constants; +import org.onap.workflow.tools.HttpDeleteWithBody; +import org.onap.workflow.tools.RequestParameters; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.google.gson.Gson; + +public class RestClient { + private static final String HTTP = "http"; + private static final Logger logger = LoggerFactory.getLogger(RestClient.class); + + enum HttpMethod { + GET, POST, PUT, DELETE + } + + /** + * + * @param method + * @param ip + * @param port + * @param url + * @param body + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse executeHttp(HttpMethod method, String ip, Integer port, String url, + HttpEntity body) throws ClientProtocolException, IOException { + logger.info("deployfile method send"); + CloseableHttpClient httpclient = HttpClients.createDefault(); + HttpResponse httpResponse = null; + RestResponse result = new RestResponse(); + try { + if (ip == null) { + ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp(); + } + if (port == null) { + port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort(); + } + HttpHost target = new HttpHost(ip, port, HTTP); + HttpRequest request = getRequest(method, url, body); + logger.info("deployfile method send ip"+ip); + request.addHeader(Constants.AUTHORIZATION, ToolUtil.getHeader()); + + httpResponse = httpclient.execute(target, request); + HttpEntity entity = httpResponse.getEntity(); + logger.info("deployfile method send"); + if (entity != null) { + result.setStatusCode(httpResponse.getStatusLine().getStatusCode()); + logger.info("reply status code deploy"+httpResponse.getStatusLine().getStatusCode()); + result.setResult(EntityUtils.toString(entity)); + } + } catch (IOException e) { + logger.warn("Close httpclient failed.", e); + } finally { + if (httpclient != null) { + try { + httpclient.close(); + } catch (IOException e) { + logger.warn("Close httpclient failed.", e); + } + } + } + return result; + } + + private static HttpRequest getRequest(HttpMethod method, String url, HttpEntity body) { + HttpRequest request = null; + switch (method) { + case GET: + request = new HttpGet(url); + break; + case POST: + request = new HttpPost(url); + ((HttpPost) request).setEntity(body); + break; + case PUT: + request = new HttpPut(url); + ((HttpPut) request).setEntity(body); + break; + case DELETE: + request = new HttpDelete(url); + break; + default: + break; + } + return request; + } + + /** + * + * @param ip + * @param port + * @param url + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static String get(String ip, int port, String url) + throws ClientProtocolException, IOException { + return executeHttp(HttpMethod.GET, ip, port, url, null).getResult(); + } + + /** + * + * @param ip + * @param port + * @param url + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse delete(String ip, int port, String url) + throws ClientProtocolException, IOException { + return executeHttp(HttpMethod.GET, ip, port, url, null); + } + + /** + * + * @param ip + * @param port + * @param url + * @param requestBody + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse post(String ip, int port, String url, HttpEntity requestBody) + throws ClientProtocolException, IOException { + return executeHttp(HttpMethod.POST, ip, port, url, requestBody); + } + + + + /** + * + * @param method + * @param ip + * @param port + * @param url + * @param body + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse executeHttpDeleteDeploy(HttpMethod method, String ip, Integer port, + String url) throws ClientProtocolException, IOException { + if (ip == null) { + ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp(); + } + port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort(); + RestResponse result = new RestResponse(); + CloseableHttpClient httpClient = HttpClients.createDefault(); + try { + httpClient = HttpClients.createDefault(); + // "http://localhost:8080/activiti-rest/service/repository/deployments/167501" + String deleteUrl = Constants.HTTP_HEADER + ip + Constants.COLON + port + url; + HttpDeleteWithBody httpDeteTest = new HttpDeleteWithBody(deleteUrl); + Gson gson = new Gson(); + RequestParameters reqPa = new RequestParameters(); + reqPa.setCasCade(true); + String jsonStr = gson.toJson(reqPa, RequestParameters.class); + StringEntity requestEntity = new StringEntity(jsonStr, "UTF-8"); + requestEntity.setContentEncoding("UTF-8"); + httpDeteTest.setHeader("Content-type", "application/json"); + httpDeteTest.setHeader(Constants.AUTHORIZATION, ToolUtil.getHeader()); + httpDeteTest.setEntity(new StringEntity(jsonStr)); + // returnValue = httpClient.execute(httpDeteTest, responseHandler); // 调接口获取返回值时,必须用此方法 + CloseableHttpResponse httpResonse = httpClient.execute(httpDeteTest); + int statusCode = httpResonse.getStatusLine().getStatusCode(); + result.setStatusCode(statusCode); + // result.setResult(EntityUtils.toString(httpResonse.getEntity())); + } catch (Exception e) { + e.printStackTrace(); + } + + finally { + try { + httpClient.close(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + return result; + } + + /** + * + * @param method + * @param ip + * @param port + * @param url + * @param body + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse executeHttpStartIntance(HttpMethod method, String ip, Integer port, + String url, ActivitiStartProcessRequest object) throws ClientProtocolException, IOException { + String returnValue = ""; + RestResponse result = new RestResponse(); + CloseableHttpClient httpClient = HttpClients.createDefault(); + ResponseHandler responseHandler = new BasicResponseHandler(); + try { + httpClient = HttpClients.createDefault(); + if (ip == null) { + ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp(); + } + port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort(); + + HttpPost httpPost = new HttpPost(Constants.HTTP_HEADER + ip + ":" + port + url); + Gson gson = new Gson(); + String jsonStr = gson.toJson(object, ActivitiStartProcessRequest.class); + StringEntity requestEntity = new StringEntity(jsonStr, "utf-8"); + requestEntity.setContentEncoding("UTF-8"); + httpPost.setHeader("Content-type", "application/json"); + httpPost.setHeader(Constants.AUTHORIZATION, ToolUtil.getHeader()); + httpPost.setEntity(requestEntity); + returnValue = httpClient.execute(httpPost, responseHandler); // 调接口获取返回值时,必须用此方法 + CloseableHttpResponse httpResonse = httpClient.execute(httpPost); + int statusCode = httpResonse.getStatusLine().getStatusCode(); + returnValue = EntityUtils.toString(httpResonse.getEntity(),"UTF-8"); + result.setStatusCode(statusCode); + result.setResult(returnValue); + } catch (Exception e) { + e.printStackTrace(); + } + + finally { + try { + httpClient.close(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + return result; + } + + /** + * + * @param ip + * @param port + * @param url + * @param requestBody + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse post(String ip, Integer port, String url, + ActivitiStartProcessRequest requestBody) throws ClientProtocolException, IOException { + return executeHttpStartIntance(HttpMethod.POST, ip, port, url, requestBody); + } + + /** + * + * @param ip + * @param port + * @param url + * @param requestBody + * @return + * @throws ClientProtocolException + * @throws IOException + */ + public static RestResponse post(String ip, Integer port, String url) + throws ClientProtocolException, IOException { + return executeHttpDeleteDeploy(HttpMethod.DELETE, ip, port, url); + } + +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClientUtils.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClientUtils.java new file mode 100644 index 0000000..d90077c --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClientUtils.java @@ -0,0 +1,42 @@ +/** + * 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. + */ +package org.onap.workflow.common; + +import java.io.InputStream; + +import org.apache.http.HttpEntity; +import org.apache.http.entity.ContentType; +import org.apache.http.entity.mime.MultipartEntityBuilder; + +/** + * + * @author 10090474 + * + */ +public class RestClientUtils { + /** + * + * @param ins + * @param fileName + * @return + */ + public static HttpEntity buildMultipartRequest(InputStream ins, String fileName) { + MultipartEntityBuilder builder = MultipartEntityBuilder.create(); + builder.seContentType(ContentType.MULTIPART_FORM_DATA); + builder.addBinaryBody("file", ins, ContentType.APPLICATION_OCTET_STREAM, fileName); + return builder.build(); + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestResponse.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestResponse.java new file mode 100644 index 0000000..21467bf --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/RestResponse.java @@ -0,0 +1,37 @@ +/** + * 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. + */ +package org.onap.workflow.common; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@JsonIgnoreProperties(ignoreUnknown = true) +public class RestResponse { + private int statusCode; + private String result; + + @Override + public String toString() { + return "RestResponse [statusCode=" + statusCode + ", result=" + result + "]"; + } + +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/ToolUtil.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/ToolUtil.java new file mode 100644 index 0000000..c148eb3 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/ToolUtil.java @@ -0,0 +1,67 @@ +/** + * Copyright (C) 2017 ZTE, Inc. and others. All rights reserved. (ZTE) + * + * 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. + */ +package org.onap.workflow.common; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.Charset; + +import org.apache.commons.codec.binary.Base64; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + +public class ToolUtil { + private static final Logger logger = LoggerFactory.getLogger(ToolUtil.class); + + /** + * 构造Basic Auth认证头信息 + * + * @return + */ + public static String getHeader() { + String auth = "kermit" + ":" +"kermit"; + byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName("US-ASCII"))); + String authHeader = "Basic " + new String(encodedAuth); + return authHeader; + } + + public static boolean isEmptyString(String val) { + return ((val == null || "".equals(val)) ? true : false); + } + + public static boolean isTrimedEmptyString(String val) { + return ((val == null || "".equals(val.trim())) ? true : false); + } + + public static boolean isTrimedEmptyArray(String[] val) { + return ((val == null || val.length == 0) ? true : false); + } + + /** + * @param ins + */ + public static void closeInputStream(InputStream ins) { + if (ins != null) { + try { + ins.close(); + } catch (IOException e) { + logger.info("Close InputStream failed.", e); + } + } + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/common/package-info.java b/wfenginemgrservice/src/main/java/org/onap/workflow/common/package-info.java new file mode 100644 index 0000000..e47fcb8 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/common/package-info.java @@ -0,0 +1,16 @@ +/** + * Copyright 2017 [ZTE] and others. + * + * 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. + */ +package org.onap.workflow.common; \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/entity/DeployBpmnFileResponse.java b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/DeployBpmnFileResponse.java new file mode 100644 index 0000000..6a1920e --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/DeployBpmnFileResponse.java @@ -0,0 +1,31 @@ +/** + * 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. + */ +package org.onap.workflow.entity; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + + +@Data +@NoArgsConstructor +@AllArgsConstructor +public class DeployBpmnFileResponse { + private int status; + private String message; + private String deployedId; + private String processId; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/entity/MsbClientConfig.java b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/MsbClientConfig.java new file mode 100644 index 0000000..e73c4f2 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/MsbClientConfig.java @@ -0,0 +1,26 @@ +/** + * 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. + */ + +package org.onap.workflow.entity; + +import lombok.Data; + +@Data +public class MsbClientConfig { + + private String msbSvrIp; + private Integer msbSvrPort; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/entity/StartProcessRequest.java b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/StartProcessRequest.java new file mode 100644 index 0000000..cddaa09 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/entity/StartProcessRequest.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.onap.workflow.entity; + +import java.util.Map; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@JsonIgnoreProperties(ignoreUnknown = true) +public class StartProcessRequest { + private String processDefinitionKey; + private Map params; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiDeployResponse.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiDeployResponse.java new file mode 100644 index 0000000..5ad3d12 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiDeployResponse.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.onap.workflow.externalservice.entity.activitientitiy; + +import lombok.Data; + +@Data +public class ActivitiDeployResponse { + private String id; + private String deploymentTime; + private String url; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequest.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequest.java new file mode 100644 index 0000000..ae7edf1 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequest.java @@ -0,0 +1,25 @@ +/** + * 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. + */ + +package org.onap.workflow.externalservice.entity.activitientitiy; + +import lombok.Data; + +@Data +public class ActivitiStartProcessRequest { + private String processDefinitionKey; + private ActivitiStartProcessRequestParam[] variables; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequestParam.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequestParam.java new file mode 100644 index 0000000..35dc487 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequestParam.java @@ -0,0 +1,27 @@ +/** + * Copyright 2017 [ZTE] and others. + * + * 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. + */ +package org.onap.workflow.externalservice.entity.activitientitiy; + +import lombok.Data; + +/** + * + */ +@Data +public class ActivitiStartProcessRequestParam { + private String name; + private String value; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/package-info.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/package-info.java new file mode 100644 index 0000000..102c36f --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/package-info.java @@ -0,0 +1,19 @@ +/** + * Copyright 2017 [ZTE] and others. + * + * 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. + */ +/** + * + */ +package org.onap.workflow.externalservice.entity.activitientitiy; \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java new file mode 100644 index 0000000..017cf35 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java @@ -0,0 +1,142 @@ +/** + * 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. + */ +package org.onap.workflow.externalservice.service.activitiservice; + +import java.io.IOException; +import java.io.InputStream; + +import javax.ws.rs.core.Response; + +import org.apache.http.client.ClientProtocolException; +import org.glassfish.jersey.client.ClientConfig; +import org.onap.workflow.common.Config; +import org.onap.workflow.common.EnumModuleUrl; +import org.onap.workflow.common.RestClient; +import org.onap.workflow.common.RestClientUtils; +import org.onap.workflow.common.RestResponse; +import org.onap.workflow.common.ToolUtil; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiDeployResponse; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiStartProcessRequest; +import org.onap.workflow.tools.Constants; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.eclipsesource.jaxrs.consumer.ConsumerFactory; +import com.google.gson.Gson; + +/** + * + * @author 10090474 + * + */ +public class ActivitiServiceConsumer { + private static final Logger logger = LoggerFactory.getLogger(ActivitiServiceConsumer.class); + private static final String DEPLOY_BPMNFILE_URL = + EnumModuleUrl.ACTIVITI.getApiRootDomain() + "/repository/deployments"; + + private static IActivitiRestService activitiServiceProxy = null; + + private static IActivitiRestService getActivitiService() { + if (activitiServiceProxy == null) { + ClientConfig config = new ClientConfig(); + activitiServiceProxy = ConsumerFactory.createConsumer( + EnumModuleUrl.getBaseUrl(EnumModuleUrl.ACTIVITI), config, IActivitiRestService.class); + + } + return activitiServiceProxy; + } + + public static RestResponse undeploybpmnfile(String deploymentId) { + /* + * IActivitiRestService activitiProxy = getActivitiService(); + * activitiProxy.undeployBpmnFile(deploymentId); + */ + RestResponse res = deleteDeployProcess(deploymentId); + // activitiProxy.startProcess(request); + + return res; + } + + public static RestResponse startBpmnProcess(ActivitiStartProcessRequest request) { + // IActivitiRestService activitiProxy = getActivitiService(); + // startProcess( request); + // activitiProxy.startProcess(request); + return startProcess(request); + } + + public static RestResponse deleteDeployProcess(String deploymentId) { + // TODO Auto-generated method stub + RestResponse res = null; + try { + res = RestClient.post(null, null, Constants.DEPLOY_BPMNFILE_URL + "/" + deploymentId); + } catch (ClientProtocolException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return res; + } + + public static RestResponse startProcess(ActivitiStartProcessRequest request) { + // TODO Auto-generated method stub + RestResponse res = null; + try { + res = RestClient.post(null, null, Constants.ACITIVI_START_INSTANCE_URL, request); + } catch (ClientProtocolException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + // if (Response.Status.OK.getStatusCode() == res.getStatusCode() + // || Response.Status.CREATED.getStatusCode() == res.getStatusCode()) { + // Response response = new Gson().fromJson(res.getResult(), Response.class); + // return response; + // } + return res; + } + + public static ActivitiDeployResponse deploybpmnfile(InputStream ins, String filename) + throws ClientProtocolException, IOException { + try { + return deployPackage2Activiti(ins, filename); + } finally { + ToolUtil.closeInputStream(ins); + } + } + + private static ActivitiDeployResponse deployPackage2Activiti(InputStream ins, String filename) + throws ClientProtocolException, IOException { + String ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp(); + int port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort(); + RestResponse res = RestClient.post(ip, port, DEPLOY_BPMNFILE_URL, + RestClientUtils.buildMultipartRequest(ins, filename)); + logger.info("deployfile to activiti return. {}", res); + + if (Response.Status.OK.getStatusCode() == res.getStatusCode() + || Response.Status.CREATED.getStatusCode() == res.getStatusCode()) { + ActivitiDeployResponse response = + new Gson().fromJson(res.getResult(), ActivitiDeployResponse.class); + return response; + } + return null; + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/IActivitiRestService.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/IActivitiRestService.java new file mode 100644 index 0000000..b2a8366 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/IActivitiRestService.java @@ -0,0 +1,44 @@ +/** + * 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. + */ + +package org.onap.workflow.externalservice.service.activitiservice; + +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiStartProcessRequest; + +@Path("/") +public interface IActivitiRestService { + @Path("/repository/deployments/{deploymentId}") + @DELETE + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + Response undeployBpmnFile(@PathParam("deploymentId") String deploymentId); + + + @Path("/runtime/process-instances") + @POST + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + Response startProcess(ActivitiStartProcessRequest request); +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/package-info.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/package-info.java new file mode 100644 index 0000000..a32e966 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/package-info.java @@ -0,0 +1,17 @@ +/** + * Copyright 2017 [ZTE] and others. + * + * 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. + */ + +package org.onap.workflow.externalservice.service.activitiservice; \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/resources/WorkflowResource.java b/wfenginemgrservice/src/main/java/org/onap/workflow/resources/WorkflowResource.java new file mode 100644 index 0000000..5450d75 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/resources/WorkflowResource.java @@ -0,0 +1,101 @@ +/** + * 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. + */ + +package org.onap.workflow.resources; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; + +import java.io.InputStream; + +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import org.eclipse.jetty.http.HttpStatus; +import org.glassfish.jersey.media.multipart.FormDataContentDisposition; +import org.glassfish.jersey.media.multipart.FormDataParam; +import org.jvnet.hk2.annotations.Service; +import org.onap.workflow.common.RestResponse; +import org.onap.workflow.entity.DeployBpmnFileResponse; +import org.onap.workflow.entity.StartProcessRequest; +import org.onap.workflow.wrapper.WorkflowInstanceWrapper; + +@Path("/") +@Api(tags = {"Workflow Resource"}) +@Produces(MediaType.APPLICATION_JSON) +@Service +public class WorkflowResource { + @POST + @Path("/package") + @Consumes({"multipart/form-data"}) + @Produces({"application/json"}) + @ApiOperation(value = "deploy bpmn file") + @ApiResponses(value = { + @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "microservice not found", + response = DeployBpmnFileResponse.class), + @ApiResponse(code = HttpStatus.UNSUPPORTED_MEDIA_TYPE_415, + message = "Unprocessable MicroServiceInfo Entity ", response = String.class), + @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "error")}) + public Response deployBpmnFile( + @ApiParam(value = "file inputstream", + required = true) @FormDataParam("file") InputStream fileInputStream, + @ApiParam(value = "file detail", + required = false) @FormDataParam("file") FormDataContentDisposition fileDetail) { + return WorkflowInstanceWrapper.getInstance().deployBpmnFile(fileDetail.getFileName(), + fileInputStream, null); + } + + @Path("/package/{deployId}") + @DELETE + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "undeploy bpmn file") + @ApiResponses(value = { + @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "microservice not found", + response = DeployBpmnFileResponse.class), + @ApiResponse(code = HttpStatus.UNSUPPORTED_MEDIA_TYPE_415, + message = "Unprocessable MicroServiceInfo Entity ", response = String.class), + @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "error")}) + public RestResponse undeployBpmnFile( + @ApiParam("deployId") @PathParam("deployId") String deployId) { + return WorkflowInstanceWrapper.getInstance().undeployBpmnFile(deployId); + } + + @Path("process/instance") + @POST + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "package process") + @ApiResponses(value = { + @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "microservice not found", + response = DeployBpmnFileResponse.class), + @ApiResponse(code = HttpStatus.UNSUPPORTED_MEDIA_TYPE_415, + message = "Unprocessable MicroServiceInfo Entity ", response = String.class), + @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "error")}) + public Response startProcess( + @ApiParam(value = "request", required = false) StartProcessRequest request) { + return WorkflowInstanceWrapper.getInstance().startProcess(request); + } +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/tools/Constants.java b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/Constants.java new file mode 100644 index 0000000..15aac35 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/Constants.java @@ -0,0 +1,29 @@ +/** + * 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. + */ + +package org.onap.workflow.tools; + +import org.onap.workflow.common.EnumModuleUrl; + +public class Constants { + public final static String AUTHORIZATION ="Authorization"; + public final static String HTTP_HEADER ="http://"; + public final static String HTTP ="HTTP"; + public final static String COLON =":"; + public static final String ACITIVI_START_INSTANCE_URL = + EnumModuleUrl.ACTIVITI.getApiRootDomain() + "/runtime/process-instances"; + public static final String DEPLOY_BPMNFILE_URL = EnumModuleUrl.ACTIVITI.getApiRootDomain() + "/repository/deployments"; +} diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/tools/HttpDeleteWithBody.java b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/HttpDeleteWithBody.java new file mode 100644 index 0000000..8fcc7a0 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/HttpDeleteWithBody.java @@ -0,0 +1,37 @@ +/** + * 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. + */ + +package org.onap.workflow.tools; + +import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; +import java.net.URI; +import org.apache.http.annotation.NotThreadSafe; + +@NotThreadSafe +public class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase { + public static final String METHOD_NAME = "DELETE"; + public String getMethod() { return METHOD_NAME; } + + public HttpDeleteWithBody(final String uri) { + super(); + setURI(URI.create(uri)); + } + public HttpDeleteWithBody(final URI uri) { + super(); + setURI(uri); + } + public HttpDeleteWithBody() { super(); } +} \ No newline at end of file diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/tools/RequestParameters.java b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/RequestParameters.java new file mode 100644 index 0000000..b8e76d8 --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/RequestParameters.java @@ -0,0 +1,35 @@ +/** + * 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. + */ + +package org.onap.workflow.tools; + +import lombok.Data; + +/** + * @author 10175158 + * + */ +@Data +public class RequestParameters { + + protected boolean casCade; + @Override + public String toString() { + return "casCade [casCade=" + casCade + "]"; + } +} + + diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/tools/package-info.java b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/package-info.java new file mode 100644 index 0000000..afd5cfc --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/tools/package-info.java @@ -0,0 +1,17 @@ +/** + * 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. + */ + +package org.onap.workflow.tools; diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/wrapper/WorkflowInstanceWrapper.java b/wfenginemgrservice/src/main/java/org/onap/workflow/wrapper/WorkflowInstanceWrapper.java new file mode 100644 index 0000000..5bc734d --- /dev/null +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/wrapper/WorkflowInstanceWrapper.java @@ -0,0 +1,98 @@ +/** + * 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. + */ + +package org.onap.workflow.wrapper; + +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +import javax.ws.rs.core.Response; + +import org.glassfish.jersey.media.multipart.FormDataContentDisposition; +import org.onap.workflow.common.EnumStatus; +import org.onap.workflow.common.RestResponse; +import org.onap.workflow.entity.DeployBpmnFileResponse; +import org.onap.workflow.entity.StartProcessRequest; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiDeployResponse; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiStartProcessRequest; +import org.onap.workflow.externalservice.entity.activitientitiy.ActivitiStartProcessRequestParam; +import org.onap.workflow.externalservice.service.activitiservice.ActivitiServiceConsumer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class WorkflowInstanceWrapper { + private static final Logger logger = LoggerFactory.getLogger(WorkflowInstanceWrapper.class); + + private static WorkflowInstanceWrapper wrapper = new WorkflowInstanceWrapper(); + + public static WorkflowInstanceWrapper getInstance() { + return wrapper; + } + + public Response deployBpmnFile(String filename, InputStream fileInputStream, + FormDataContentDisposition fileDetail) { + try { + ActivitiDeployResponse deployresult = + ActivitiServiceConsumer.deploybpmnfile(fileInputStream, filename); + if (deployresult != null) { + DeployBpmnFileResponse result = new DeployBpmnFileResponse(); + result.setStatus(EnumStatus.SUCCESS.ordinal()); + result.setMessage(EnumStatus.SUCCESS.toString()); + result.setDeployedId(deployresult.getId()); + result.setProcessId(filename); + return Response.ok(result).build(); + } + } catch (Exception e) { + logger.error("deployBpmnFile fail.", e); + } + return Response.serverError().build(); + } + + public RestResponse undeployBpmnFile(String deployId) { + return ActivitiServiceConsumer.undeploybpmnfile(deployId); + } + + public Response startProcess(StartProcessRequest request) { + try { + ActivitiStartProcessRequest bpmnrequest = new ActivitiStartProcessRequest(); + bpmnrequest.setProcessDefinitionKey(request.getProcessDefinitionKey()); + if (request.getParams() != null) { + List paramlist = convertProcessRequest(request); + bpmnrequest.setVariables(paramlist.toArray(new ActivitiStartProcessRequestParam[0])); + } + RestResponse result = ActivitiServiceConsumer.startBpmnProcess(bpmnrequest); + return Response.ok(result.getResult()).build(); + } catch (Exception e) { + logger.error("startProcess fail.", e); + } + return Response.serverError().build(); + } + + private List convertProcessRequest( + StartProcessRequest request) { + List paramlist = + new ArrayList(); + while (request.getParams().keySet().iterator().hasNext()) { + String key = request.getParams().keySet().iterator().next(); + ActivitiStartProcessRequestParam param = new ActivitiStartProcessRequestParam(); + param.setName(key); + param.setValue(request.getParams().get(key)); + paramlist.add(param); + } + return paramlist; + } +} diff --git a/wfenginemgrservice/src/main/resources/api-doc/index.html b/wfenginemgrservice/src/main/resources/api-doc/index.html new file mode 100644 index 0000000..092c1c8 --- /dev/null +++ b/wfenginemgrservice/src/main/resources/api-doc/index.html @@ -0,0 +1,99 @@ + + + + Swagger UI + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+
+ + diff --git a/wfenginemgrservice/src/main/resources/banner.txt b/wfenginemgrservice/src/main/resources/banner.txt new file mode 100644 index 0000000..ec90bd7 --- /dev/null +++ b/wfenginemgrservice/src/main/resources/banner.txt @@ -0,0 +1,6 @@ + _ ____ _____ ___ __ __ ___ _____ ___ _____ __ __ _____ + / \ / ___| |_ _| |_ _| \ \ / / |_ _| |_ _| |_ _| | ____| \ \/ / |_ _| + / _ \ | | | | | | \ \ / / | | | | | | _____ | _| \ / | | + / ___ \ | |___ | | | | \ V / | | | | | | |_____| | |___ / \ | | + /_/ \_\ \____| |_| |___| \_/ |___| |_| |___| |_____| /_/\_\ |_| + \ No newline at end of file diff --git a/.gitattributes b/wso2/.gitattributes similarity index 100% rename from .gitattributes rename to wso2/.gitattributes diff --git a/.gitignore b/wso2/.gitignore similarity index 100% rename from .gitignore rename to wso2/.gitignore diff --git a/.gitreview b/wso2/.gitreview similarity index 100% rename from .gitreview rename to wso2/.gitreview diff --git a/License.txt b/wso2/License.txt similarity index 100% rename from License.txt rename to wso2/License.txt diff --git a/baseservice-i18n/pom.xml b/wso2/baseservice-i18n/pom.xml similarity index 100% rename from baseservice-i18n/pom.xml rename to wso2/baseservice-i18n/pom.xml diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java diff --git a/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java b/wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java similarity index 100% rename from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java rename to wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java diff --git a/common-util/.gitignore b/wso2/common-util/.gitignore similarity index 100% rename from common-util/.gitignore rename to wso2/common-util/.gitignore diff --git a/common-util/pom.xml b/wso2/common-util/pom.xml similarity index 100% rename from common-util/pom.xml rename to wso2/common-util/pom.xml diff --git a/common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java b/wso2/common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java rename to wso2/common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java diff --git a/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java b/wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java rename to wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java diff --git a/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java b/wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java rename to wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java diff --git a/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java b/wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java rename to wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java diff --git a/common-util/src/main/java/org/openo/baseservice/util/RestUtils.java b/wso2/common-util/src/main/java/org/openo/baseservice/util/RestUtils.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/util/RestUtils.java rename to wso2/common-util/src/main/java/org/openo/baseservice/util/RestUtils.java diff --git a/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java b/wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java rename to wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java diff --git a/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java b/wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java rename to wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java diff --git a/common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java b/wso2/common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java similarity index 100% rename from common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java rename to wso2/common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java diff --git a/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java b/wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java rename to wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java diff --git a/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java b/wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java rename to wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java diff --git a/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java b/wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java rename to wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java diff --git a/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java b/wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java rename to wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java diff --git a/common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java b/wso2/common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java rename to wso2/common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java diff --git a/common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java b/wso2/common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java similarity index 100% rename from common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java rename to wso2/common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java diff --git a/dropwizard-ioc-container/pom.xml b/wso2/dropwizard-ioc-container/pom.xml similarity index 100% rename from dropwizard-ioc-container/pom.xml rename to wso2/dropwizard-ioc-container/pom.xml diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java diff --git a/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java b/wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java similarity index 100% rename from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java rename to wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java diff --git a/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java b/wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java similarity index 100% rename from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java rename to wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java diff --git a/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java b/wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java similarity index 100% rename from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java rename to wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java diff --git a/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java b/wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java similarity index 100% rename from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java rename to wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java diff --git a/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java b/wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java similarity index 100% rename from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java rename to wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java diff --git a/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java b/wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java similarity index 100% rename from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java rename to wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java diff --git a/dropwizard-ioc-container/src/test/resources/example.yml b/wso2/dropwizard-ioc-container/src/test/resources/example.yml similarity index 100% rename from dropwizard-ioc-container/src/test/resources/example.yml rename to wso2/dropwizard-ioc-container/src/test/resources/example.yml diff --git a/logging-sdk/pom.xml b/wso2/logging-sdk/pom.xml similarity index 100% rename from logging-sdk/pom.xml rename to wso2/logging-sdk/pom.xml diff --git a/logging-sdk/src/main/java/org/openo/log/api/LogMessage.java b/wso2/logging-sdk/src/main/java/org/openo/log/api/LogMessage.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/api/LogMessage.java rename to wso2/logging-sdk/src/main/java/org/openo/log/api/LogMessage.java diff --git a/logging-sdk/src/main/java/org/openo/log/api/LogService.java b/wso2/logging-sdk/src/main/java/org/openo/log/api/LogService.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/api/LogService.java rename to wso2/logging-sdk/src/main/java/org/openo/log/api/LogService.java diff --git a/logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java b/wso2/logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java rename to wso2/logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java diff --git a/logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java b/wso2/logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java rename to wso2/logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java diff --git a/logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java b/wso2/logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java rename to wso2/logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java diff --git a/logging-sdk/src/main/java/org/openo/log/impl/Facitility.java b/wso2/logging-sdk/src/main/java/org/openo/log/impl/Facitility.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/impl/Facitility.java rename to wso2/logging-sdk/src/main/java/org/openo/log/impl/Facitility.java diff --git a/logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java b/wso2/logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java rename to wso2/logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java diff --git a/logging-sdk/src/main/java/org/openo/log/impl/LogConst.java b/wso2/logging-sdk/src/main/java/org/openo/log/impl/LogConst.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/impl/LogConst.java rename to wso2/logging-sdk/src/main/java/org/openo/log/impl/LogConst.java diff --git a/logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java b/wso2/logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java rename to wso2/logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java diff --git a/logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java b/wso2/logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java rename to wso2/logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java diff --git a/logging-sdk/src/main/java/org/openo/log/test/logback.xml b/wso2/logging-sdk/src/main/java/org/openo/log/test/logback.xml similarity index 100% rename from logging-sdk/src/main/java/org/openo/log/test/logback.xml rename to wso2/logging-sdk/src/main/java/org/openo/log/test/logback.xml diff --git a/pom.xml b/wso2/pom.xml similarity index 100% rename from pom.xml rename to wso2/pom.xml diff --git a/rest-client/.gitignore b/wso2/rest-client/.gitignore similarity index 100% rename from rest-client/.gitignore rename to wso2/rest-client/.gitignore diff --git a/rest-client/pom.xml b/wso2/rest-client/pom.xml similarity index 100% rename from rest-client/pom.xml rename to wso2/rest-client/pom.xml diff --git a/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java b/wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java diff --git a/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java b/wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java diff --git a/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java b/wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java similarity index 100% rename from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java rename to wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java diff --git a/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java b/wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java similarity index 100% rename from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java rename to wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java diff --git a/rest-client/src/test/resources/etc/conf/restclient.json b/wso2/rest-client/src/test/resources/etc/conf/restclient.json similarity index 100% rename from rest-client/src/test/resources/etc/conf/restclient.json rename to wso2/rest-client/src/test/resources/etc/conf/restclient.json diff --git a/rest-client/src/test/resources/rest-client-test.json b/wso2/rest-client/src/test/resources/rest-client-test.json similarity index 100% rename from rest-client/src/test/resources/rest-client-test.json rename to wso2/rest-client/src/test/resources/rest-client-test.json diff --git a/wso2bpel-ext/pom.xml b/wso2/wso2bpel-ext/pom.xml similarity index 100% rename from wso2bpel-ext/pom.xml rename to wso2/wso2bpel-ext/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java diff --git a/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java b/wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java rename to wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java diff --git a/wso2bpel-ext/wso2bpel-core/distribution/pom.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties b/wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties similarity index 100% rename from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties rename to wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties diff --git a/wso2bpel-ext/wso2bpel-core/pom.xml b/wso2/wso2bpel-ext/wso2bpel-core/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-core/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties b/wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties similarity index 100% rename from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties rename to wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties diff --git a/wso2bpel-ext/wso2bpel-parent/pom.xml b/wso2/wso2bpel-ext/wso2bpel-parent/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-parent/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-parent/pom.xml diff --git a/wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml b/wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml diff --git a/wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml b/wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml similarity index 100% rename from wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml rename to wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml -- 2.16.6