init code 19/6919/1
authorZhaoxing <meng.zhaoxing1@zte.com.cn>
Tue, 8 Aug 2017 06:02:53 +0000 (14:02 +0800)
committerZhaoxing <meng.zhaoxing1@zte.com.cn>
Tue, 8 Aug 2017 06:02:53 +0000 (14:02 +0800)
Change-Id: Icd0948118397b256da70dfbcbbec5520dc5eafd4
Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
231 files changed:
wfenginemgrservice/pom.xml [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowApp.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/WorkflowAppConfig.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/ToolUtil.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/activitiext/common/package-info.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/Config.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumModuleUrl.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/EnumStatus.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClient.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/RestClientUtils.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/RestResponse.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/ToolUtil.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/common/package-info.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/entity/DeployBpmnFileResponse.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/entity/MsbClientConfig.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/entity/StartProcessRequest.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiDeployResponse.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequest.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/ActivitiStartProcessRequestParam.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/entity/activitientitiy/package-info.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/IActivitiRestService.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/package-info.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/resources/WorkflowResource.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/tools/Constants.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/tools/HttpDeleteWithBody.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/tools/RequestParameters.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/tools/package-info.java [new file with mode: 0644]
wfenginemgrservice/src/main/java/org/onap/workflow/wrapper/WorkflowInstanceWrapper.java [new file with mode: 0644]
wfenginemgrservice/src/main/resources/api-doc/index.html [new file with mode: 0644]
wfenginemgrservice/src/main/resources/banner.txt [new file with mode: 0644]
wso2/.gitattributes [moved from .gitattributes with 100% similarity]
wso2/.gitignore [moved from .gitignore with 100% similarity]
wso2/.gitreview [moved from .gitreview with 100% similarity]
wso2/License.txt [moved from License.txt with 100% similarity]
wso2/baseservice-i18n/pom.xml [moved from baseservice-i18n/pom.xml with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultErrorCodeI18n.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/DefaultI18nService.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeException.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/ErrorCodeI18n.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18n.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nContainer.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nImpl.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nItem.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nJsonUtil.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/I18nService.java with 100% similarity]
wso2/baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java [moved from baseservice-i18n/src/main/java/org/openo/baseservice/i18n/JsonResourceScanner.java with 100% similarity]
wso2/common-util/.gitignore [moved from common-util/.gitignore with 100% similarity]
wso2/common-util/pom.xml [moved from common-util/pom.xml with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java [moved from common-util/src/main/java/org/openo/baseservice/bus/util/BusConstant.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java [moved from common-util/src/main/java/org/openo/baseservice/bus/util/RegisterService.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java [moved from common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/CipherCreator.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipher.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherFactory.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipher.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/inf/AbstractCipherFactory.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java [moved from common-util/src/main/java/org/openo/baseservice/encrypt/cbb/sha/Sha256.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/util/RestUtils.java [moved from common-util/src/main/java/org/openo/baseservice/util/RestUtils.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java [moved from common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImpl.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java [moved from common-util/src/main/java/org/openo/baseservice/util/impl/SystemEnvVariablesFactory.java with 100% similarity]
wso2/common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java [moved from common-util/src/main/java/org/openo/baseservice/util/inf/SystemEnvVariables.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java [moved from common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterService.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java [moved from common-util/src/test/java/org/openo/baseservice/bus/util/TestRegisterServiceListener.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java [moved from common-util/src/test/java/org/openo/baseservice/encrypt/cbb/impl/AesCipherTest.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java [moved from common-util/src/test/java/org/openo/baseservice/encrypt/cbb/sha/Sha256Test.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java [moved from common-util/src/test/java/org/openo/baseservice/util/RestUtilsTest.java with 100% similarity]
wso2/common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java [moved from common-util/src/test/java/org/openo/baseservice/util/impl/SystemEnvVariablesDefImplTest.java with 100% similarity]
wso2/dropwizard-ioc-container/pom.xml [moved from dropwizard-ioc-container/pom.xml with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/BaseService.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/Lazy.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PostBaseService.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreBaseService.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreLoad.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/annotation/PreServiceLoad.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundle.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/AutoConfigBundleBuider.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/IOCApplication.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/bundle/ServiceLocatorManaged.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceBinder.java with 100% similarity]
wso2/dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java [moved from dropwizard-ioc-container/src/main/java/org/openo/dropwizard/ioc/utils/ServiceLocatorHolder.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java [moved from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/IOCBundleTest.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java [moved from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/PreTestService.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java [moved from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/TestService.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java [moved from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/app/ExampleApp.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java [moved from dropwizard-ioc-container/src/test/java/org/openo/dropwizard/ioc/test/service/conf/TestConfiguration.java with 100% similarity]
wso2/dropwizard-ioc-container/src/test/resources/example.yml [moved from dropwizard-ioc-container/src/test/resources/example.yml with 100% similarity]
wso2/logging-sdk/pom.xml [moved from logging-sdk/pom.xml with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/api/LogMessage.java [moved from logging-sdk/src/main/java/org/openo/log/api/LogMessage.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/api/LogService.java [moved from logging-sdk/src/main/java/org/openo/log/api/LogService.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java [moved from logging-sdk/src/main/java/org/openo/log/api/OperLogMessage.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java [moved from logging-sdk/src/main/java/org/openo/log/api/SecLogMessage.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java [moved from logging-sdk/src/main/java/org/openo/log/api/SysLogMessage.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/impl/Facitility.java [moved from logging-sdk/src/main/java/org/openo/log/impl/Facitility.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java [moved from logging-sdk/src/main/java/org/openo/log/impl/InsertLogHandler.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/impl/LogConst.java [moved from logging-sdk/src/main/java/org/openo/log/impl/LogConst.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java [moved from logging-sdk/src/main/java/org/openo/log/impl/LogIdTool.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java [moved from logging-sdk/src/main/java/org/openo/log/test/TestLogback2Logstash.java with 100% similarity]
wso2/logging-sdk/src/main/java/org/openo/log/test/logback.xml [moved from logging-sdk/src/main/java/org/openo/log/test/logback.xml with 100% similarity]
wso2/pom.xml [moved from pom.xml with 100% similarity]
wso2/rest-client/.gitignore [moved from rest-client/.gitignore with 100% similarity]
wso2/rest-client/pom.xml [moved from rest-client/pom.xml with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java [moved from rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ExceptionArgs.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java [moved from rest-client/src/main/java/org/openo/baseservice/remoteservice/exception/ServiceException.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/ReaderHelper.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/DefaultAsyncCallback.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpBaseRest.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/HttpRest.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestHttpContentExchange.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/Restful.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulAsyncCallback.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulClientConst.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulConfigure.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulFactory.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulOptions.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulParametes.java with 100% similarity]
wso2/rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java [moved from rest-client/src/main/java/org/openo/baseservice/roa/util/restclient/RestfulResponse.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/ReaderHelperTest.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/TestServiceUtil.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestHttpRest.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestHttpContentExchange.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulConfigure.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulFactory.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulOptions.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulParametes.java with 100% similarity]
wso2/rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java [moved from rest-client/src/test/java/org/openo/baseservice/roa/util/restclient/TestRestfulResponse.java with 100% similarity]
wso2/rest-client/src/test/resources/etc/conf/restclient.json [moved from rest-client/src/test/resources/etc/conf/restclient.json with 100% similarity]
wso2/rest-client/src/test/resources/rest-client-test.json [moved from rest-client/src/test/resources/rest-client-test.json with 100% similarity]
wso2/wso2bpel-ext/pom.xml [moved from wso2bpel-ext/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightExtensionBundle.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/Bpel4RestLightOperation.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/EPRDemoOperation.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/MethodAttribute.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/extensions/bpel4restlight/util/Bpel4RestLightUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BPELVariableInjectionUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/bpel/util/BpelUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/DomXmlConverter.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/de/unistuttgart/iaas/xml/XPathEvaluator.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HighLevelRestApi.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpMethod.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/HttpResponseMessage.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java [moved from wso2bpel-ext/wso2bpel-core/BPEL4RESTLight/src/main/java/org/opentosca/bpel4restlight/rest/LowLevelRestApi.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/pom.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/initDB.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/run.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/stop.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/find_kill_process.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/conf/wso2bpel.yml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/find_kill_process.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.bat with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/bin/shutdown.sh with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/mysql.sql with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/dbscripts/bps/bpel/create/wso-bpel-mysql-createdb.sql with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/bps.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/bps.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/carbon/carbon.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/activiti-datasources.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/bps-datasources.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/repository/conf/datasources/master-datasources.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties [moved from wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps/wso2bps-ext.properties with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/pom.xml [moved from wso2bpel-ext/wso2bpel-core/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelApplication.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/Config.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/common/ServiceRegistrer.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceNode.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/entity/ServiceRegisterEntity.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusConsumer.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/externalservice/msb/MicroserviceBusRest.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsPackage.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsProcess.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/BpsServiceException.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/resources/RestAppConfig.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/ClientWsdlLoader.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/JsonUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/LRULinkedHashMap.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/SoapUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/util/Xml2JsonUtil.java with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/META-INF/MANIFEST.MF with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/WEB-INF/web.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/reset.css with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/screen.css with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/css/typography.css with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.eot with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.svg with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.ttf with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-700.woff2 with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.eot with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.svg with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.ttf with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/fonts/droid-sans-v6-latin-regular.woff2 with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/explorer_icons.png with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/logo_small.png with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/pet_store_api.png with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/throbber.gif with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/images/wordnik_api.png with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/index.html with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/backbone-min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/handlebars-2.0.0.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/highlight.7.3.pack.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery-1.8.0.min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.ba-bbq.min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.slideto.min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/jquery.wiggle.min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/marked.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred.bundle.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/shred/content.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-client.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/swagger-oauth.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/lib/underscore-min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/o2c.html with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/api-doc/swagger-ui.min.js with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/banner.txt with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/config.properties with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/migrations.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties [moved from wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/resources/wso2-config.properties with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-parent/pom.xml [moved from wso2bpel-ext/wso2bpel-parent/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml [moved from wso2bpel-ext/wso2bpel-parent/wso2bpelparent-lite/pom.xml with 100% similarity]
wso2/wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml [moved from wso2bpel-ext/wso2bpel-parent/wso2bpelparent/pom.xml with 100% similarity]

diff --git a/wfenginemgrservice/pom.xml b/wfenginemgrservice/pom.xml
new file mode 100644 (file)
index 0000000..b60df33
--- /dev/null
@@ -0,0 +1,310 @@
+<?xml version="1.0"?>\r
+<!-- Copyright 2016 ZTE Corporation. Licensed under the Apache License, Version \r
+       2.0 (the "License"); you may not use this file except in compliance with \r
+       the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 \r
+       Unless required by applicable law or agreed to in writing, software distributed \r
+       under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES \r
+       OR CONDITIONS OF ANY KIND, either express or implied. See the License for \r
+       the specific language governing permissions and limitations under the License. -->\r
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+       <parent>\r
+               <groupId>org.onap.oparent</groupId>\r
+               <artifactId>oparent</artifactId>\r
+               <version>1.0.0-SNAPSHOT</version>\r
+       </parent>\r
+\r
+       <modelVersion>4.0.0</modelVersion>\r
+       <artifactId>workflow-engine-mgr-service</artifactId>\r
+       <name>vfc/nfvo/wfengine/wfenginemgrservice</name>\r
+       <packaging>jar</packaging>\r
+\r
+       <properties>\r
+               <ant.version>1.9.6</ant.version>\r
+               <apache-velocity.version>1.6.2</apache-velocity.version>\r
+               <jgrapht.version>0.9.1</jgrapht.version>\r
+       </properties>\r
+\r
+       <build>\r
+               <plugins>\r
+                       <plugin>\r
+                               <groupId>org.eclipse.m2e</groupId>\r
+                               <artifactId>lifecycle-mapping</artifactId>\r
+                               <version>1.0.0</version>\r
+                               <configuration>\r
+                                       <lifecycleMappingMetadata>\r
+                                               <pluginExecutions>\r
+                                                       <pluginExecution>\r
+                                                               <pluginExecutionFilter>\r
+                                                                       <groupId>org.apache.maven.plugins</groupId>\r
+                                                                       <artifactId>maven-dependency-plugin</artifactId>\r
+                                                                       <versionRange>[2.0,)</versionRange>\r
+                                                                       <goals>\r
+                                                                               <goal>copy-dependencies</goal>\r
+                                                                       </goals>\r
+                                                               </pluginExecutionFilter>\r
+                                                               <action>\r
+                                                                       <ignore />\r
+                                                               </action>\r
+                                                       </pluginExecution>\r
+                                               </pluginExecutions>\r
+                                       </lifecycleMappingMetadata>\r
+                               </configuration>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-jar-plugin</artifactId>\r
+                               <version>2.6</version>\r
+                               <configuration>\r
+                                       <archive>\r
+                                               <manifest>\r
+                                                       <addDefaultImplementationEntries>true</addDefaultImplementationEntries>\r
+                                               </manifest>\r
+                                       </archive>\r
+                               </configuration>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-compiler-plugin</artifactId>\r
+                               <version>3.5.1</version>\r
+                               <configuration>\r
+                                       <source>1.8</source>\r
+                                       <target>1.8</target>\r
+                               </configuration>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-shade-plugin</artifactId>\r
+                               <version>2.4</version>\r
+                               <configuration>\r
+                                       <createDependencyReducedPom>false</createDependencyReducedPom>\r
+                                       <filters>\r
+                                               <filter>\r
+                                                       <artifact>*:*</artifact>\r
+                                                       <excludes>\r
+                                                               <exclude>META-INF/*.SF</exclude>\r
+                                                               <exclude>META-INF/*.DSA</exclude>\r
+                                                               <exclude>META-INF/*.RSA</exclude>\r
+                                                       </excludes>\r
+                                               </filter>\r
+                                       </filters>\r
+                               </configuration>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <phase>package</phase>\r
+                                               <goals>\r
+                                                       <goal>shade</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <transformers>\r
+                                                               <transformer\r
+                                                                       implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />\r
+                                                               <transformer\r
+                                                                       implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">\r
+                                                                       <mainClass>com.onap.workflow.WorkflowApp</mainClass>\r
+                                                               </transformer>\r
+                                                       </transformers>\r
+                                               </configuration>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-dependency-plugin</artifactId>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <id>copy-dependencies</id>\r
+                                               <phase>package</phase>\r
+                                               <goals>\r
+                                                       <goal>copy-dependencies</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <artifactItems>\r
+                                                               <artifactItem>\r
+                                                                       <groupId>io.dropwizard</groupId>\r
+                                                                       <artifactId>dropwizard-core</artifactId>\r
+                                                                       <version>${dropwizard.version}</version>\r
+                                                                       <overWrite>true</overWrite>\r
+                                                               </artifactItem>\r
+                                                       </artifactItems>\r
+                                               </configuration>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
+\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-failsafe-plugin</artifactId>\r
+                               <version>2.8</version>\r
+                       </plugin>\r
+               </plugins>\r
+               <pluginManagement>\r
+                       <plugins>\r
+                               <!--This plugin's configuration is used to store Eclipse m2e settings \r
+                                       only. It has no influence on the Maven build itself. -->\r
+                               <plugin>\r
+                                       <groupId>org.eclipse.m2e</groupId>\r
+                                       <artifactId>lifecycle-mapping</artifactId>\r
+                                       <version>1.0.0</version>\r
+                                       <configuration>\r
+                                               <lifecycleMappingMetadata>\r
+                                                       <pluginExecutions>\r
+                                                               <pluginExecution>\r
+                                                                       <pluginExecutionFilter>\r
+                                                                               <groupId>\r
+                                                                                       org.apache.maven.plugins\r
+                                                                               </groupId>\r
+                                                                               <artifactId>\r
+                                                                                       maven-checkstyle-plugin\r
+                                                                               </artifactId>\r
+                                                                               <versionRange>\r
+                                                                                       [2.17,)\r
+                                                                               </versionRange>\r
+                                                                               <goals>\r
+                                                                                       <goal>check</goal>\r
+                                                                               </goals>\r
+                                                                       </pluginExecutionFilter>\r
+                                                                       <action>\r
+                                                                               <ignore></ignore>\r
+                                                                       </action>\r
+                                                               </pluginExecution>\r
+                                                       </pluginExecutions>\r
+                                               </lifecycleMappingMetadata>\r
+                                       </configuration>\r
+                               </plugin>\r
+                       </plugins>\r
+               </pluginManagement>\r
+       </build>\r
+       <dependencies>\r
+               <dependency>\r
+                       <groupId>io.dropwizard</groupId>\r
+                       <artifactId>dropwizard-core</artifactId>\r
+                       <version>0.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.dropwizard</groupId>\r
+                       <artifactId>dropwizard-assets</artifactId>\r
+                       <version>0.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.dropwizard</groupId>\r
+                       <artifactId>dropwizard-hibernate</artifactId>\r
+                       <version>0.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.dropwizard</groupId>\r
+                       <artifactId>dropwizard-migrations</artifactId>\r
+                       <version>0.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.swagger</groupId>\r
+                       <artifactId>swagger-jersey2-jaxrs</artifactId>\r
+                       <version>1.5.3</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.projectlombok</groupId>\r
+                       <artifactId>lombok</artifactId>\r
+                       <version>1.16.4</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.glassfish.jersey.core</groupId>\r
+                       <artifactId>jersey-server</artifactId>\r
+                       <version>2.16</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.glassfish.jersey.media</groupId>\r
+                       <artifactId>jersey-media-multipart</artifactId>\r
+                       <version>2.16</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.glassfish.jersey.containers</groupId>\r
+                       <artifactId>jersey-container-servlet-core</artifactId>\r
+                       <version>2.16</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.eclipsesource.jaxrs</groupId>\r
+                       <artifactId>consumer</artifactId>\r
+                       <version>5.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.jcraft</groupId>\r
+                       <artifactId>jsch</artifactId>\r
+                       <version>0.1.53</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.fasterxml.jackson.dataformat</groupId>\r
+                       <artifactId>jackson-dataformat-xml</artifactId>\r
+                       <version>2.5.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.fasterxml.jackson.core</groupId>\r
+                       <artifactId>jackson-annotations</artifactId>\r
+                       <version>2.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.google.code.gson</groupId>\r
+                       <artifactId>gson</artifactId>\r
+                       <version>2.2.4</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>dom4j</groupId>\r
+                       <artifactId>dom4j</artifactId>\r
+                       <version>1.6.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.dropwizard</groupId>\r
+                       <artifactId>dropwizard-jdbi</artifactId>\r
+                       <version>0.8.0</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>mysql</groupId>\r
+                       <artifactId>mysql-connector-java</artifactId>\r
+                       <version>5.1.40</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>commons-io</groupId>\r
+                       <artifactId>commons-io</artifactId>\r
+                       <version>2.4</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.apache.httpcomponents</groupId>\r
+                       <artifactId>httpcore</artifactId>\r
+                       <version>4.4.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.apache.httpcomponents</groupId>\r
+                       <artifactId>httpmime</artifactId>\r
+                       <version>4.4.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>junit</groupId>\r
+                       <artifactId>junit</artifactId>\r
+                       <version>4.12</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.powermock</groupId>\r
+                       <artifactId>powermock-module-junit4</artifactId>\r
+                       <version>1.6.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.powermock</groupId>\r
+                       <artifactId>powermock-api-mockito</artifactId>\r
+                       <version>1.6.1</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.mockito</groupId>\r
+                       <artifactId>mockito-all</artifactId>\r
+                       <version>1.9.5</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.apache.ant</groupId>\r
+                       <artifactId>ant</artifactId>\r
+                       <version>1.9.6</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.slf4j</groupId>\r
+                       <artifactId>slf4j-api</artifactId>\r
+                       <version>1.7.12</version>\r
+               </dependency>\r
+       </dependencies>\r
+</project>\r
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 (file)
index 0000000..23f6ac6
--- /dev/null
@@ -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<WorkflowAppConfig> {
+
+       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 (file)
index 0000000..71985cc
--- /dev/null
@@ -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 (file)
index 0000000..fe573e2
--- /dev/null
@@ -0,0 +1,52 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.onap.workflow.activitiext.common;\r
+\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+\r
+\r
+\r
+public class ToolUtil {\r
+  private static final Logger logger = LoggerFactory.getLogger(ToolUtil.class);\r
+  public static boolean isEmptyString(String val) {\r
+    return ((val == null || "".equals(val)) ? true : false);\r
+  }\r
+\r
+  public static boolean isTrimedEmptyString(String val) {\r
+    return ((val == null || "".equals(val.trim())) ? true : false);\r
+  }\r
+\r
+  public static boolean isTrimedEmptyArray(String[] val) {\r
+    return ((val == null || val.length == 0) ? true : false);\r
+  }\r
+  \r
+  /**\r
+   * @param ins\r
+   */\r
+  public static void closeInputStream(InputStream ins) {\r
+    if (ins != null) {\r
+      try {\r
+        ins.close();\r
+      } catch (IOException e) {\r
+        logger.info("Close InputStream failed.", e);\r
+      }\r
+    }\r
+  }\r
+}\r
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 (file)
index 0000000..d64450f
--- /dev/null
@@ -0,0 +1,16 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+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 (file)
index 0000000..49dc227
--- /dev/null
@@ -0,0 +1,31 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.common;\r
+\r
+import org.onap.workflow.WorkflowAppConfig;\r
+\r
+public class Config {\r
+    private static WorkflowAppConfig workflowAppConfig;\r
+\r
+    public static WorkflowAppConfig getWorkflowAppConfig() {\r
+        return workflowAppConfig;\r
+    }\r
+\r
+    public static void setWorkflowAppConfig(WorkflowAppConfig config) {\r
+       workflowAppConfig = config;\r
+    }\r
+}
\ 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 (file)
index 0000000..00f10d8
--- /dev/null
@@ -0,0 +1,33 @@
+/**\r
+ * Copyright 2017 [ZTE] and others.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.onap.workflow.common;\r
+\r
+public enum EnumModuleUrl {\r
+  ACTIVITI {\r
+    @Override\r
+    public String getApiRootDomain() {\r
+      return "/activiti-rest/service";\r
+    }\r
+  };\r
+\r
+  public abstract String getApiRootDomain();\r
+\r
+  public static String getBaseUrl(EnumModuleUrl enumUrl) {\r
+    String msbHost = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp();\r
+    return "http://" + msbHost + ":" + "80" + enumUrl.getApiRootDomain();\r
+  }\r
+\r
+}\r
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 (file)
index 0000000..e2d1c5c
--- /dev/null
@@ -0,0 +1,21 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.common;\r
+\r
+public enum EnumStatus {\r
+  SUCCESS, FAIL\r
+}\r
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 (file)
index 0000000..f037757
--- /dev/null
@@ -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<String> 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 (file)
index 0000000..d90077c
--- /dev/null
@@ -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 (file)
index 0000000..21467bf
--- /dev/null
@@ -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 (file)
index 0000000..c148eb3
--- /dev/null
@@ -0,0 +1,67 @@
+/**\r
+ * Copyright (C) 2017 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *         http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.onap.workflow.common;\r
+\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+import java.nio.charset.Charset;\r
+\r
+import org.apache.commons.codec.binary.Base64;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+\r
+\r
+\r
+public class ToolUtil {\r
+  private static final Logger logger = LoggerFactory.getLogger(ToolUtil.class);\r
+  \r
+  /**\r
+   * 构造Basic Auth认证头信息\r
+   * \r
+   * @return\r
+   */\r
+  public static String getHeader() {\r
+    String auth = "kermit" + ":" +"kermit";\r
+    byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName("US-ASCII")));\r
+    String authHeader = "Basic " + new String(encodedAuth);\r
+    return authHeader;\r
+  }\r
+  \r
+  public static boolean isEmptyString(String val) {\r
+    return ((val == null || "".equals(val)) ? true : false);\r
+  }\r
+\r
+  public static boolean isTrimedEmptyString(String val) {\r
+    return ((val == null || "".equals(val.trim())) ? true : false);\r
+  }\r
+\r
+  public static boolean isTrimedEmptyArray(String[] val) {\r
+    return ((val == null || val.length == 0) ? true : false);\r
+  }\r
+  \r
+  /**\r
+   * @param ins\r
+   */\r
+  public static void closeInputStream(InputStream ins) {\r
+    if (ins != null) {\r
+      try {\r
+        ins.close();\r
+      } catch (IOException e) {\r
+        logger.info("Close InputStream failed.", e);\r
+      }\r
+    }\r
+  }\r
+}\r
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 (file)
index 0000000..e47fcb8
--- /dev/null
@@ -0,0 +1,16 @@
+/**\r
+ * Copyright 2017 [ZTE] and others.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+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 (file)
index 0000000..6a1920e
--- /dev/null
@@ -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 (file)
index 0000000..e73c4f2
--- /dev/null
@@ -0,0 +1,26 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.entity;\r
+\r
+import lombok.Data;\r
+\r
+@Data\r
+public class MsbClientConfig {\r
+\r
+       private String msbSvrIp;\r
+       private Integer msbSvrPort;\r
+}\r
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 (file)
index 0000000..cddaa09
--- /dev/null
@@ -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<String, String> 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 (file)
index 0000000..5ad3d12
--- /dev/null
@@ -0,0 +1,25 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.onap.workflow.externalservice.entity.activitientitiy;\r
+\r
+import lombok.Data;\r
+\r
+@Data\r
+public class ActivitiDeployResponse {\r
+  private String id;\r
+  private String deploymentTime;\r
+  private String url;\r
+}\r
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 (file)
index 0000000..ae7edf1
--- /dev/null
@@ -0,0 +1,25 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.externalservice.entity.activitientitiy;\r
+\r
+import lombok.Data;\r
+\r
+@Data\r
+public class ActivitiStartProcessRequest {\r
+  private String processDefinitionKey;\r
+  private ActivitiStartProcessRequestParam[] variables;\r
+}\r
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 (file)
index 0000000..35dc487
--- /dev/null
@@ -0,0 +1,27 @@
+/**\r
+ * Copyright 2017 [ZTE] and others.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.onap.workflow.externalservice.entity.activitientitiy;\r
+\r
+import lombok.Data;\r
+\r
+/**\r
+ *\r
+ */\r
+@Data\r
+public class ActivitiStartProcessRequestParam {\r
+  private String name;\r
+  private String value;\r
+}\r
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 (file)
index 0000000..102c36f
--- /dev/null
@@ -0,0 +1,19 @@
+/**\r
+ * Copyright 2017 [ZTE] and others.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+/**\r
+ *\r
+ */\r
+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 (file)
index 0000000..017cf35
--- /dev/null
@@ -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 (file)
index 0000000..b2a8366
--- /dev/null
@@ -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 (file)
index 0000000..a32e966
--- /dev/null
@@ -0,0 +1,17 @@
+/**\r
+ * Copyright 2017 [ZTE] and others.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+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 (file)
index 0000000..5450d75
--- /dev/null
@@ -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 (file)
index 0000000..15aac35
--- /dev/null
@@ -0,0 +1,29 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.tools;\r
+\r
+import org.onap.workflow.common.EnumModuleUrl;\r
+\r
+public class Constants {\r
+ public final static String AUTHORIZATION ="Authorization";\r
+ public final static String HTTP_HEADER ="http://";\r
+ public final static String HTTP ="HTTP";\r
+ public final static String COLON =":";\r
+ public static final String ACITIVI_START_INSTANCE_URL =\r
+     EnumModuleUrl.ACTIVITI.getApiRootDomain() + "/runtime/process-instances";\r
+ public static final String DEPLOY_BPMNFILE_URL = EnumModuleUrl.ACTIVITI.getApiRootDomain() + "/repository/deployments";\r
+}\r
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 (file)
index 0000000..8fcc7a0
--- /dev/null
@@ -0,0 +1,37 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.tools;\r
+\r
+import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;\r
+import java.net.URI;\r
+import org.apache.http.annotation.NotThreadSafe;\r
+\r
+@NotThreadSafe\r
+public class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase {\r
+    public static final String METHOD_NAME = "DELETE";\r
+    public String getMethod() { return METHOD_NAME; }\r
+\r
+    public HttpDeleteWithBody(final String uri) {\r
+        super();\r
+        setURI(URI.create(uri));\r
+    }\r
+    public HttpDeleteWithBody(final URI uri) {\r
+        super();\r
+        setURI(uri);\r
+    }\r
+    public HttpDeleteWithBody() { super(); }\r
+}
\ 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 (file)
index 0000000..b8e76d8
--- /dev/null
@@ -0,0 +1,35 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.tools;\r
+\r
+import lombok.Data;\r
+\r
+/**\r
+ * @author 10175158\r
+ *\r
+ */\r
+@Data\r
+public class RequestParameters {\r
+\r
+  protected boolean casCade;\r
+  @Override\r
+  public String toString() {\r
+    return "casCade [casCade=" + casCade + "]";\r
+  }\r
+}\r
+\r
+\r
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 (file)
index 0000000..afd5cfc
--- /dev/null
@@ -0,0 +1,17 @@
+/**\r
+ * Copyright 2017 ZTE Corporation.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package org.onap.workflow.tools;\r
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 (file)
index 0000000..5bc734d
--- /dev/null
@@ -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<ActivitiStartProcessRequestParam> 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<ActivitiStartProcessRequestParam> convertProcessRequest(
+      StartProcessRequest request) {
+    List<ActivitiStartProcessRequestParam> paramlist =
+        new ArrayList<ActivitiStartProcessRequestParam>();
+    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 (file)
index 0000000..092c1c8
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Swagger UI</title>
+  <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
+  <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
+  <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
+  <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
+  <link href='css/screen.css' media='print' rel='stylesheet' type='text/css'/>
+  <script type="text/javascript" src="lib/shred.bundle.js"></script>
+  <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
+  <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
+  <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
+  <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
+  <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
+  <script src='lib/underscore-min.js' type='text/javascript'></script>
+  <script src='lib/backbone-min.js' type='text/javascript'></script>
+  <script src='lib/swagger-client.js' type='text/javascript'></script>
+  <script src='swagger-ui.js' type='text/javascript'></script>
+  <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
+  <script src='lib/marked.js' type='text/javascript'></script>
+
+  <!-- enabling this will enable oauth2 implicit scope support -->
+  <script src='lib/swagger-oauth.js' type='text/javascript'></script>
+  <script type="text/javascript">
+    $(function () {
+      var url = window.location.search.match(/url=([^&]+)/);
+      if (url && url.length > 1) {
+        url = decodeURIComponent(url[1]);
+      } else {
+        url = "/api/workflow/v1/swagger.json";
+      }
+      window.swaggerUi = new SwaggerUi({
+        url: url,
+        dom_id: "swagger-ui-container",
+        supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
+        onComplete: function(swaggerApi, swaggerUi){
+        
+          if(typeof initOAuth == "function") {
+            /*
+            initOAuth({
+              clientId: "your-client-id",
+              realm: "your-realms",
+              appName: "your-app-name"
+            });
+            */
+          }
+          $('pre code').each(function(i, e) {
+            hljs.highlightBlock(e)
+          });
+        },
+        onFailure: function(data) {
+          log("Unable to Load SwaggerUI");
+        },
+        docExpansion: "none",
+        sorter : "alpha"
+      });
+
+      function addApiKeyAuthorization() {
+        var key = $('#input_apiKey')[0].value;
+        log("key: " + key);
+        if(key && key.trim() != "") {
+            log("added key " + key);
+            window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
+        }
+      }
+
+      $('#input_apiKey').change(function() {
+        addApiKeyAuthorization();
+      });
+
+      // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
+      /*
+        var apiKey = "myApiKeyXXXX123456789";
+        $('#input_apiKey').val(apiKey);
+        addApiKeyAuthorization();
+      */
+
+      window.swaggerUi.load();
+  });
+  </script>
+</head>
+
+<body class="swagger-section">
+<div id='header' style="display:none">
+  <div class="swagger-ui-wrap" >
+    <a id="logo" >zte conductor</a>
+    <form id='api_selector'>
+      <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
+      <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
+      <div class='input'><a id="explore" href="#">Explore</a></div>
+    </form>
+  </div>
+</div>
+
+<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
+<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
+</body>
+</html>
diff --git a/wfenginemgrservice/src/main/resources/banner.txt b/wfenginemgrservice/src/main/resources/banner.txt
new file mode 100644 (file)
index 0000000..ec90bd7
--- /dev/null
@@ -0,0 +1,6 @@
+     _       ____   _____   ___  __     __  ___   _____   ___           _____  __  __  _____ \r
+    / \     / ___| |_   _| |_ _| \ \   / / |_ _| |_   _| |_ _|         | ____| \ \/ / |_   _|\r
+   / _ \   | |       | |    | |   \ \ / /   | |    | |    | |   _____  |  _|    \  /    | |  \r
+  / ___ \  | |___    | |    | |    \ V /    | |    | |    | |  |_____| | |___   /  \    | |  \r
+ /_/   \_\  \____|   |_|   |___|    \_/    |___|   |_|   |___|         |_____| /_/\_\   |_|  \r
+                                                                                             
\ No newline at end of file
similarity index 100%
rename from .gitattributes
rename to wso2/.gitattributes
similarity index 100%
rename from .gitignore
rename to wso2/.gitignore
similarity index 100%
rename from .gitreview
rename to wso2/.gitreview
similarity index 100%
rename from License.txt
rename to wso2/License.txt
similarity index 100%
rename from common-util/pom.xml
rename to wso2/common-util/pom.xml
similarity index 100%
rename from logging-sdk/pom.xml
rename to wso2/logging-sdk/pom.xml
similarity index 100%
rename from pom.xml
rename to wso2/pom.xml
similarity index 100%
rename from rest-client/pom.xml
rename to wso2/rest-client/pom.xml