added authentication 58/158/5
authornarendervemula <nv537j@att.com>
Sun, 29 Jul 2018 14:26:50 +0000 (14:26 +0000)
committernarendervemula <nv537j@att.com>
Tue, 31 Jul 2018 00:49:26 +0000 (00:49 +0000)
Change-Id: Ic3eb52b52eb38b9084e0e32dce05968e4afea52f

31 files changed:
akraino/.gitignore [new file with mode: 0644]
akraino/.springBeans [new file with mode: 0644]
akraino/RemoteSystemsTempFiles/.project [deleted file]
akraino/pom.xml
akraino/src/main/java/com/akraino/bpm/AkrainoSpringBootApplication.java
akraino/src/main/java/com/akraino/bpm/config/CamundaCorsFilter.java
akraino/src/main/java/com/akraino/bpm/controller/CamundaRestController.java
akraino/src/main/java/com/akraino/bpm/delegate/DeployPostVerficationRemoteScriptExecutor.java
akraino/src/main/java/com/akraino/bpm/delegate/DeployRemoteDeploymentVerificationDelegate.java
akraino/src/main/java/com/akraino/bpm/delegate/DeployRemoteScriptExecutorTaskDelegate.java
akraino/src/main/java/com/akraino/bpm/delegate/DeployScriptExecutorTaskDelegate.java
akraino/src/main/java/com/akraino/bpm/delegate/DeploymentVerificationDelegate.java
akraino/src/main/java/com/akraino/bpm/delegate/WinScpScriptDelegate.java
akraino/src/main/java/com/akraino/bpm/model/Airship.java
akraino/src/main/java/com/akraino/bpm/model/Apache.java
akraino/src/main/java/com/akraino/bpm/model/Build.java
akraino/src/main/java/com/akraino/bpm/model/BuildResponse.java
akraino/src/main/java/com/akraino/bpm/model/Deploy.java
akraino/src/main/java/com/akraino/bpm/model/Onap.java
akraino/src/main/java/com/akraino/bpm/model/Tempest.java
akraino/src/main/java/com/akraino/bpm/service/AsyncProcessExecutorService.java [new file with mode: 0644]
akraino/src/main/java/com/akraino/bpm/service/impl/AsyncProcessExecutorServiceImpl.java [new file with mode: 0644]
akraino/src/main/java/com/akraino/bpm/service/impl/DeployResponseSenderServiceImpl.java
akraino/src/main/java/com/akraino/bpm/service/impl/FileTransferServiceImpl.java
akraino/src/main/java/com/akraino/bpm/service/impl/RemoteDeploymentverificationServiceImpl.java
akraino/src/main/java/com/akraino/bpm/service/impl/RemoteScriptExecutionServiceImpl.java
akraino/src/main/java/com/akraino/bpm/service/impl/ScriptExecutionServiceImpl.java
akraino/src/main/resources/application.yaml
config/application.yaml
config/deploy.bpmn
config/singledeploy.bpmn [new file with mode: 0644]

diff --git a/akraino/.gitignore b/akraino/.gitignore
new file mode 100644 (file)
index 0000000..b7d7dc6
--- /dev/null
@@ -0,0 +1,12 @@
+*.class
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.ear
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
\ No newline at end of file
diff --git a/akraino/.springBeans b/akraino/.springBeans
new file mode 100644 (file)
index 0000000..009ac9b
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beansProjectDescription>\r
+       <version>1</version>\r
+       <pluginVersion><![CDATA[3.9.2.201712210913-RELEASE]]></pluginVersion>\r
+       <configSuffixes>\r
+               <configSuffix><![CDATA[xml]]></configSuffix>\r
+       </configSuffixes>\r
+       <enableImports><![CDATA[false]]></enableImports>\r
+       <configs>\r
+               <config>java:com.akraino.bpm.AkrainoSpringBootApplication</config>\r
+       </configs>\r
+       <autoconfigs>\r
+       </autoconfigs>\r
+       <configSets>\r
+       </configSets>\r
+</beansProjectDescription>\r
diff --git a/akraino/RemoteSystemsTempFiles/.project b/akraino/RemoteSystemsTempFiles/.project
deleted file mode 100644 (file)
index 5447a64..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>RemoteSystemsTempFiles</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.rse.ui.remoteSystemsTempNature</nature>
-       </natures>
-</projectDescription>
index f142d61..3cb3945 100644 (file)
@@ -4,7 +4,7 @@
   <artifactId>camunda_workflow</artifactId>
   <version>0.0.1-SNAPSHOT</version>
   <packaging>jar</packaging>
-
+  
   <dependencyManagement>
     <dependencies>
       <dependency>
@@ -16,7 +16,7 @@
       </dependency>
     </dependencies>
   </dependencyManagement>
-
+  
   <dependencies>
     <dependency>
       <groupId>org.camunda.bpm.springboot</groupId>
       <groupId>com.h2database</groupId>
       <artifactId>h2</artifactId>
     </dependency>
+    
     <dependency>
       <groupId>org.yaml</groupId>
       <artifactId>snakeyaml</artifactId>
       <version>1.21</version>
     </dependency>
+    
     <dependency>
-      <groupId>commons-net</groupId>
-      <artifactId>commons-net</artifactId>
-      <version>3.3</version>
+    <groupId>commons-net</groupId>
+    <artifactId>commons-net</artifactId>
+    <version>3.3</version>
+       </dependency>
+       
+       <dependency>
+    <groupId>com.jcraft</groupId>
+    <artifactId>jsch</artifactId>
+    <version>0.1.54</version>
+       </dependency>
+       <dependency>
+      <groupId>io.springfox</groupId>
+      <artifactId>springfox-swagger2</artifactId>
+      <version>2.7.0</version>
     </dependency>
+
     <dependency>
-      <groupId>com.jcraft</groupId>
-      <artifactId>jsch</artifactId>
-      <version>0.1.54</version>
+      <groupId>io.springfox</groupId>
+      <artifactId>springfox-swagger-ui</artifactId>
+      <version>2.7.0</version>
     </dependency>
-  </dependencies>
+       
+
 
-  <build>
-    <plugins>
+    
+  </dependencies>
+  
+   
+    <build>
+  <plugins>
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
@@ -57,6 +76,8 @@
           </execution>
         </executions>
       </plugin>
-    </plugins>
-  </build>
-</project>
\ No newline at end of file
+     </plugins>
+</build>
+  
+  
+</project>
index d93e52f..68eb570 100644 (file)
 
 package com.akraino.bpm;
 
+import java.util.HashSet;
+import java.util.Set;
+
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.Bean;
+import org.springframework.http.MediaType;
+import org.springframework.scheduling.annotation.EnableAsync;
+
+import io.swagger.annotations.Api;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.builders.PathSelectors;
+import springfox.documentation.builders.RequestHandlerSelectors;
+import springfox.documentation.service.ApiInfo;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spring.web.plugins.Docket;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
 @SpringBootApplication
+@EnableAsync
+@EnableSwagger2
 public class AkrainoSpringBootApplication {
        public static void main(String... args) {
                System.setProperty("server.connection-timeout","36000000");
                SpringApplication.run(AkrainoSpringBootApplication.class, args);
        }
+       
+         @Bean
+         public Docket api() {
+           Set<String> mediaTypes = new HashSet<String>();
+           mediaTypes.add(MediaType.APPLICATION_JSON_VALUE);
+
+           return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
+               .paths(PathSelectors.any()).build().pathMapping("/").consumes(mediaTypes).produces(mediaTypes)
+               .apiInfo(apiInfo()).useDefaultResponseMessages(false);
+         }
+
+         @Bean
+         public ApiInfo apiInfo() {
+           final ApiInfoBuilder builder = new ApiInfoBuilder();
+           builder.title("Akraino Camunda  Workflow REST Api").version("1.0").license("(C) Copyright AT&T Inc.")
+               .description("The API provides a Workflow Engine for Akraino");
+           return builder.build();
+         }
+
+       
+       
 }
index 5b3c294..3d0da27 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.config;
-
-
-import java.io.IOException;
-
-
-import javax.sql.DataSource;
-
-import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;
-import org.camunda.bpm.engine.impl.jobexecutor.CallerRunsRejectedJobsHandler;
-import org.camunda.bpm.engine.impl.jobexecutor.JobExecutor;
-import org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration;
-import org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.boot.web.client.RestTemplateBuilder;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Primary;
-import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
-import org.springframework.core.task.TaskExecutor;
-import org.springframework.jdbc.datasource.DataSourceTransactionManager;
-import org.springframework.transaction.PlatformTransactionManager;
-import org.springframework.web.client.RestTemplate;
-import org.springframework.web.cors.CorsConfiguration;
-import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
-import org.springframework.web.filter.CorsFilter;
-
-
-
-@Configuration
-
-       public class CamundaCorsFilter {
-       
-       
-       @Value("${camunda.bpm.buildresponseurl}")       
-       private String buildresponseurl;
-       
-       @Autowired 
-       private DataSource dataSource;
-       
-       @Autowired
-       private PlatformTransactionManager  transactionManager;
-       
-       @Autowired 
-       private JobExecutor jobExecutor;
-               
-               public String getBuildresponseurl() {
-                       return buildresponseurl;
-               }
-
-               public void setBuildresponseurl(String buildresponseurl) {
-                       this.buildresponseurl = buildresponseurl;
-               }
-               
-               @Bean
-               public RestTemplate restTemplate(RestTemplateBuilder builder) {
-                  // Do any additional configuration here
-                  return builder.build();
-               }
-               
-               /*@Bean
-               public  JobExecutor jobExecutor() {
-                   final JobExecutor jobExecutor = new RuntimeContainerJobExecutor();
-                   jobExecutor.setWaitTimeInMillis(5000);
-                   jobExecutor.setLockTimeInMillis(18000000);
-                   return jobExecutor;
-                 } 
-               @Bean 
-               
-               public ProcessEngineConfiguration SpringProcessEngineConfiguration () {
-                       
-                       ProcessEngineConfiguration ProcessEngineConfiguration=new SpringProcessEngineConfiguration().setJobExecutor(jobexecutor).setProcessEngineName("default");
-                       return ProcessEngineConfiguration;
-               }*/
-               
-        @Bean
-               @Primary
-           public static JobExecutor jobExecutor(@Qualifier("camundaTaskExecutor") final TaskExecutor taskExecutor) {
-             final SpringJobExecutor springJobExecutor = new SpringJobExecutor();
-             springJobExecutor.setTaskExecutor(taskExecutor);
-             springJobExecutor.setRejectedJobsHandler(new CallerRunsRejectedJobsHandler());
-             springJobExecutor.setWaitTimeInMillis(5000);
-             springJobExecutor.setLockTimeInMillis(36000000);
-                 return springJobExecutor;
-           }
-               
-               @Bean
-               @Primary
-               public ProcessEngineConfigurationImpl processEngineConfiguration() throws IOException {
-                   SpringProcessEngineConfiguration config = (SpringProcessEngineConfiguration) new SpringProcessEngineConfiguration().setJobExecutor(jobExecutor);
-                   config.setDataSource(dataSource);
-                   config.setTransactionManager(transactionManager);
-                   config.setDatabaseSchemaUpdate("true");
-                   config.setJobExecutorActivate(true);
-                   config.setAuthorizationEnabled(true);
-                   config.setDefaultSerializationFormat("application/json");
-                   PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
-                   config.setDeploymentResources(resolver.getResources("classpath:*.bpmn"));
-                   return config;
-               }
-        
-               @Bean
-               public PlatformTransactionManager getTransactionManager() {
-                       PlatformTransactionManager ptm=new DataSourceTransactionManager(dataSource);
-                       return ptm;
-                 } 
-               
-               
-               @Bean
-           public CorsFilter corsFilter() {
-               UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
-               CorsConfiguration config = new CorsConfiguration();
-               config.setAllowCredentials(true);
-               config.addAllowedOrigin("*");
-               config.addAllowedHeader("*");
-               config.addAllowedMethod("OPTIONS");
-               config.addAllowedMethod("GET");
-               config.addAllowedMethod("POST");
-               config.addAllowedMethod("PATCH");
-               config.addAllowedMethod("PUT");
-               config.addAllowedMethod("DELETE");
-               source.registerCorsConfiguration("/**", config);
-               return new CorsFilter(source);
-           }
-               
-               
-       }
-
-
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.config;\r
+\r
+\r
+import java.io.IOException;\r
+\r
+\r
+import javax.sql.DataSource;\r
+\r
+import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;\r
+import org.camunda.bpm.engine.impl.jobexecutor.CallerRunsRejectedJobsHandler;\r
+import org.camunda.bpm.engine.impl.jobexecutor.JobExecutor;\r
+import org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration;\r
+import org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.beans.factory.annotation.Qualifier;\r
+import org.springframework.beans.factory.annotation.Value;\r
+import org.springframework.boot.web.client.RestTemplateBuilder;\r
+import org.springframework.context.annotation.Bean;\r
+import org.springframework.context.annotation.Configuration;\r
+import org.springframework.context.annotation.Primary;\r
+import org.springframework.core.io.support.PathMatchingResourcePatternResolver;\r
+import org.springframework.core.task.TaskExecutor;\r
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;\r
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;\r
+import org.springframework.transaction.PlatformTransactionManager;\r
+import org.springframework.web.client.RestTemplate;\r
+import org.springframework.web.cors.CorsConfiguration;\r
+import org.springframework.web.cors.UrlBasedCorsConfigurationSource;\r
+import org.springframework.web.filter.CorsFilter;\r
+\r
+\r
+\r
+@Configuration\r
+\r
+       public class CamundaCorsFilter {\r
+       \r
+       \r
+       @Value("${camunda.bpm.buildresponseurl}")       \r
+       private String buildresponseurl;\r
+       \r
+       @Value("${camunda.bpm.tokenId}")        \r
+       private String tokenId;\r
+       \r
+       @Autowired \r
+       private DataSource dataSource;\r
+       \r
+       @Autowired\r
+       private PlatformTransactionManager  transactionManager;\r
+       \r
+       @Autowired \r
+       private JobExecutor jobExecutor;\r
+               \r
+               public String getBuildresponseurl() {\r
+                       return buildresponseurl;\r
+               }\r
+\r
+               public void setBuildresponseurl(String buildresponseurl) {\r
+                       this.buildresponseurl = buildresponseurl;\r
+               }\r
+               \r
+               public String getTokenId() {\r
+                       return tokenId;\r
+               }\r
+\r
+               public void setTokenId(String tokenId) {\r
+                       this.tokenId = tokenId;\r
+               }\r
+\r
+               @Bean\r
+               public RestTemplate restTemplate(RestTemplateBuilder builder) {\r
+                  // Do any additional configuration here\r
+                  return builder.build();\r
+               }\r
+               \r
+               \r
+               \r
+               \r
+               /*@Bean\r
+               public  JobExecutor jobExecutor() {\r
+                   final JobExecutor jobExecutor = new RuntimeContainerJobExecutor();\r
+                   jobExecutor.setWaitTimeInMillis(5000);\r
+                   jobExecutor.setLockTimeInMillis(18000000);\r
+                   return jobExecutor;\r
+                 } \r
+               @Bean \r
+               \r
+               public ProcessEngineConfiguration SpringProcessEngineConfiguration () {\r
+                       \r
+                       ProcessEngineConfiguration ProcessEngineConfiguration=new SpringProcessEngineConfiguration().setJobExecutor(jobexecutor).setProcessEngineName("default");\r
+                       return ProcessEngineConfiguration;\r
+               }*/\r
+               \r
+        @Bean\r
+               @Primary\r
+           public static JobExecutor jobExecutor(@Qualifier("camundaTaskExecutor") final TaskExecutor taskExecutor) {\r
+             final SpringJobExecutor springJobExecutor = new SpringJobExecutor();\r
+             springJobExecutor.setTaskExecutor(taskExecutor);\r
+             springJobExecutor.setRejectedJobsHandler(new CallerRunsRejectedJobsHandler());\r
+             springJobExecutor.setWaitTimeInMillis(5000);\r
+             springJobExecutor.setLockTimeInMillis(36000000);\r
+                 return springJobExecutor;\r
+           }\r
+               \r
+               @Bean\r
+               @Primary\r
+               public ProcessEngineConfigurationImpl processEngineConfiguration() throws IOException {\r
+                   SpringProcessEngineConfiguration config = (SpringProcessEngineConfiguration) new SpringProcessEngineConfiguration().setJobExecutor(jobExecutor);\r
+                   config.setDataSource(dataSource);\r
+                   config.setTransactionManager(transactionManager);\r
+                   config.setDatabaseSchemaUpdate("true");\r
+                   config.setJobExecutorActivate(true);\r
+                   config.setAuthorizationEnabled(true);\r
+                   config.setDefaultSerializationFormat("application/json");\r
+                   PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();\r
+                   config.setDeploymentResources(resolver.getResources("classpath:*.bpmn"));\r
+                   //config.setProcessEnginePlugins();\r
+                   return config;\r
+               }\r
+        \r
+               @Bean\r
+               public PlatformTransactionManager getTransactionManager() {\r
+                       PlatformTransactionManager ptm=new DataSourceTransactionManager(dataSource);\r
+                       return ptm;\r
+                 } \r
+               \r
+               \r
+               @Bean\r
+           public CorsFilter corsFilter() {\r
+               UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();\r
+               CorsConfiguration config = new CorsConfiguration();\r
+               config.setAllowCredentials(true);\r
+               config.addAllowedOrigin("*");\r
+               config.addAllowedHeader("*");\r
+               config.addAllowedMethod("OPTIONS");\r
+               config.addAllowedMethod("GET");\r
+               config.addAllowedMethod("POST");\r
+               config.addAllowedMethod("PATCH");\r
+               config.addAllowedMethod("PUT");\r
+               config.addAllowedMethod("DELETE");\r
+               source.registerCorsConfiguration("/**", config);\r
+               return new CorsFilter(source);\r
+           }\r
+               \r
+               @Bean(name="akrainoprocessExecutor")\r
+           public TaskExecutor workExecutor() {\r
+               ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();\r
+               threadPoolTaskExecutor.setThreadNamePrefix("Async-");\r
+               threadPoolTaskExecutor.setCorePoolSize(10);\r
+               threadPoolTaskExecutor.setMaxPoolSize(50);\r
+               threadPoolTaskExecutor.setQueueCapacity(600);\r
+               threadPoolTaskExecutor.afterPropertiesSet();\r
+               return threadPoolTaskExecutor;\r
+           }   \r
+       }\r
+\r
+\r
index 1c5b599..798f513 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.controller;
-
-import org.camunda.bpm.engine.ProcessEngine;
-import org.camunda.bpm.engine.runtime.ProcessInstance;
-import org.camunda.bpm.engine.variable.Variables;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RestController;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.model.Airship;
-import com.akraino.bpm.model.Apache;
-import com.akraino.bpm.model.Build;
-import com.akraino.bpm.model.Deploy;
-import com.akraino.bpm.model.Onap;
-import com.akraino.bpm.model.Tempest;
-import com.akraino.bpm.model.WorkflowResponse;
-
-@RestController
-public class CamundaRestController {
-       
-         @Autowired
-         private ProcessEngine camunda;
-         
-         private static Logger logger = LoggerFactory.getLogger(CamundaRestController.class);
-         
-         @PostMapping("/build/")
-         public ResponseEntity<WorkflowResponse> build(@RequestBody Build build) {
-                 logger.debug("Request received for Build ",build.toString());
-                 
-                 try {
-                         executeBuildProcess(build);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing Build . exception : "+ex.getMessage()),HttpStatus.OK);
-                 }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"Build successfully completed."),HttpStatus.OK);
-       }
-
-         private ProcessInstance executeBuildProcess(Build build) {
-               
-               String filepath=build.getFilepath()+"  "+(build.getFileparams()!=null?build.getFileparams().replaceAll(",", "  "):" ");
-               return camunda.getRuntimeService().startProcessInstanceByKey("build",
-                               Variables.putValue("filepath", filepath).putValue("targetfolder", build.getTargetfolder()));
-       }
-       
-       
-       @PostMapping("/deploy/")
-         public ResponseEntity<WorkflowResponse> deploy(@RequestBody Deploy deploy) {
-                 logger.debug("Request received for executing {} and targetDirectory {} ",deploy.toString());
-                 try {
-                         executeDeployProcess(deploy);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing genesis build. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"Genesis build completed ."),HttpStatus.OK);
-       }
-
-       private ProcessInstance executeDeployProcess(Deploy deploy) {
-               
-               String filepath1=deploy.getFilepath()+"  "+(deploy.getFileparams()!=null?deploy.getFileparams().replaceAll(",", "  "):" ");
-               String filepath2=deploy.getWinscpfilepath()+"  "+(deploy.getWinscpfileparams()!=null?deploy.getWinscpfileparams().replaceAll(",", "  "):" ");
-               return camunda.getRuntimeService().startProcessInstanceByKey("deploy",
-                               Variables.putValue("filepath", filepath1).putValue("ScpScriptFilepath", filepath2).putValue("remotserver", deploy.getRemotserver())
-                               .putValue("username", deploy.getUsername())
-                               .putValue("password", deploy.getPassword())
-                               .putValue("port", deploy.getPort()).putValue("destdir",deploy.getDestdir()).putValue("remotefilename", deploy.getRemotefilename())
-                               .putValue("fileparams", deploy.getFileparams()).
-                               putValue("verifier", deploy.getDeploymentverifier()).putValue("verifierfileparams", 
-                               deploy.getDeploymentverifierfileparams()).putValue("waittime", deploy.getWaittime()).
-                               putValue("iterations", deploy.getNoofiterations()).putValue("postverificationscript", deploy.getPostverificationscript()).putValue("postverificationScriptparams", deploy.getDeploymentverifierfileparams()));
-               
-       }
-       
-       
-       @PostMapping("/airship/")
-         public ResponseEntity<WorkflowResponse> deploy(@RequestBody Airship airship) {
-                 logger.debug("Request received for airship {} and targetDirectory {} ",airship.toString());
-                 try {
-                         executeAirshipProcess(airship);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing genesis airship. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"Airship is completed ."),HttpStatus.OK);
-       }
-
-       private ProcessInstance executeAirshipProcess(Airship airship) {
-               
-               String filepath1=airship.getFilepath()+"  "+(airship.getFileparams()!=null?airship.getFileparams().replaceAll(",", "  "):" ");
-               String filepath2=airship.getWinscpfilepath()+"  "+(airship.getWinscpfileparams()!=null?airship.getWinscpfileparams().replaceAll(",", "  "):" ");
-               return camunda.getRuntimeService().startProcessInstanceByKey("airship",
-                               Variables.putValue("filepath", filepath1).putValue("scpdir", airship.getWinscpdir()).putValue("ScpScriptFilepath", filepath2).putValue("remotserver", airship.getRemotserver())
-                               .putValue("username", airship.getUsername())
-                               .putValue("password", airship.getPassword())
-                               .putValue("port", airship.getPort()).putValue("destdir",airship.getDestdir()).putValue("remotefilename", airship.getRemotefilename())
-                               .putValue("remotefileparams", airship.getRemotefileparams()));
-               
-       }
-       
-       
-       @PostMapping("/tempest/")
-         public ResponseEntity<WorkflowResponse> tempest(@RequestBody Tempest tempest) {
-                 logger.debug("Request received for onap ",tempest.toString());
-                 try {
-                         executeTempestProcess(tempest);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing Tempset API. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"tempeset is completed successfully."),HttpStatus.OK);
-       }
-       
-       private ProcessInstance executeTempestProcess(Tempest tempest) {
-               
-               String transferfile= tempest.getFiletrasferscript()+"  "+(tempest.getFiletransferparams()!=null?tempest.getFiletransferparams().replaceAll(",", "  "):" ");
-               
-               return camunda.getRuntimeService().startProcessInstanceByKey("tempest",
-                               Variables.putValue("filename", tempest.getFilename()).putValue("fileparams", tempest.getFileparams()).
-                               putValue("verifier", tempest.getDeploymentverifier()).putValue("verifierfileparams", tempest.getVerifierparams()).putValue("waittime", tempest.getWaittime()).
-                               putValue("iterations", tempest.getNoofiterations()).putValue("remotserver", tempest.getRemoteserver())
-                               .putValue("username", tempest.getUsername())
-                               .putValue("password", tempest.getPassword())
-                               .putValue("port", tempest.getPortnumber()).putValue("srcdir", tempest.getSrcdir()).putValue("destdir",tempest.getDestdir()).putValue("filepath", transferfile)
-                               );
-               
-       }
-       
-       
-       @PostMapping("/apache/")
-         public ResponseEntity<WorkflowResponse> apache(@RequestBody Apache apache) {
-                 logger.debug("Request received for onap ",apache.toString());
-                 try {
-                         executeapacheProcess(apache);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing Apache API. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"apache is completed successfully."),HttpStatus.OK);
-       }
-       
-       private ProcessInstance executeapacheProcess(Apache apache) {
-               
-               String transferfile= apache.getFiletrasferscript()+"  "+(apache.getFiletransferparams()!=null?apache.getFiletransferparams().replaceAll(",", "  "):" ");
-               
-               return camunda.getRuntimeService().startProcessInstanceByKey("apache",
-                               Variables.putValue("filename", apache.getFilename()).putValue("fileparams", apache.getFileparams()).
-                               putValue("verifier", apache.getDeploymentverifier()).putValue("verifierfileparams", apache.getVerifierparams()).putValue("waittime", apache.getWaittime()).
-                               putValue("iterations", apache.getNoofiterations()).putValue("remotserver", apache.getRemoteserver())
-                               .putValue("username", apache.getUsername())
-                               .putValue("password", apache.getPassword())
-                               .putValue("port", apache.getPortnumber()).putValue("srcdir", apache.getSrcdir()).putValue("destdir",apache.getDestdir()).putValue("filepath", transferfile)
-                               );
-               
-       }
-       
-       
- @PostMapping("/onap/")
-         public ResponseEntity<WorkflowResponse> onap(@RequestBody Onap onap) {
-                 logger.debug("Request received for onap ",onap.toString());
-                 try {
-                         executeOnapProcess(onap);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing onap build. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200,"Onap build completed ."),HttpStatus.OK);
-       }
-       
-       private ProcessInstance executeOnapProcess(Onap onap) {
-               
-               String transferfile= onap.getFiletrasferscript()+"  "+(onap.getFiletransferparams()!=null?onap.getFiletransferparams().replaceAll(",", "  "):" ");
-               return camunda.getRuntimeService().startProcessInstanceByKey("onap",
-                               Variables.putValue("filename", onap.getFilename()).putValue("fileparams", onap.getFileparams()).
-                               putValue("verifier", onap.getDeploymentverifier()).putValue("verifierfileparams", onap.getVerifierparams()).putValue("waittime", onap.getWaittime()).
-                               putValue("iterations", onap.getNoofiterations()).putValue("remotserver", onap.getRemoteserver())
-                               .putValue("username", onap.getUsername())
-                               .putValue("password", onap.getPassword())
-                               .putValue("port", onap.getPortnumber()).putValue("srcdir", onap.getSrcdir()).putValue("destdir",onap.getDestdir()).putValue("filepath", transferfile)
-                               );
-               
-       }
-
-
-       
-       
-       /*@PostMapping("/singlestepdeploy/")
-         public ResponseEntity<WorkflowResponse> singelStepDeploy(@RequestBody Deploy deploy) {
-                 logger.debug("Request received for onap ",deploy.toString());
-                 try {
-                         executeOnapProcess(deploy);
-                 }catch(TaskExecutorException ex) {
-                         return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(500,"Problem while executing single step deploymewnt. exception : "+ex.getMessage()),HttpStatus.OK);
-               }
-                 return new ResponseEntity<WorkflowResponse>(new WorkflowResponse(200," single step deployment completed ."),HttpStatus.OK);
-       }
-
-       private ProcessInstance executeOnapProcess(Deploy deploy) {
-               
-               String filepath1="bash   " + deploy.getFilepath1()+"  "+(deploy.getFile1params()!=null?deploy.getFile1params().replaceAll(",", "  "):" ");
-               return camunda.getRuntimeService().startProcessInstanceByKey("singlestepdeploy",Variables.putValue("filepath", filepath1));
-               
-       }*/
-         
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.controller;\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.http.HttpStatus;\r
+import org.springframework.http.ResponseEntity;\r
+import org.springframework.web.bind.annotation.PostMapping;\r
+import org.springframework.web.bind.annotation.RequestBody;\r
+import org.springframework.web.bind.annotation.RestController;\r
+\r
+\r
+import com.akraino.bpm.model.Airship;\r
+import com.akraino.bpm.model.Apache;\r
+import com.akraino.bpm.model.Build;\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.model.Deploy;\r
+import com.akraino.bpm.model.Onap;\r
+import com.akraino.bpm.model.Tempest;\r
+import com.akraino.bpm.service.AsyncProcessExecutorService;\r
+\r
+import io.swagger.annotations.Api;\r
+\r
+@Api\r
+@RestController\r
+public class CamundaRestController {\r
+       \r
+         \r
+         \r
+         @Autowired \r
+         private AsyncProcessExecutorService asyncProcessExecutorService;\r
+         \r
+         private static Logger logger = LoggerFactory.getLogger(CamundaRestController.class);\r
+         \r
+         @PostMapping("/build/")\r
+         public ResponseEntity<BuildResponse> build(@RequestBody Build build) {\r
+                 logger.debug("Request received for Build ",build.toString());\r
+                 asyncProcessExecutorService.executeBuildProcess(build);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse("in progress",null,null,null,null,build.getSitename(),null,null,null),HttpStatus.OK);\r
+                 \r
+       }\r
+\r
+         \r
+       \r
+       \r
+       @PostMapping("/deploy/")\r
+         public ResponseEntity<BuildResponse> deploy(@RequestBody Deploy deploy) {\r
+                 logger.debug("Request received for executing {} and targetDirectory {} ",deploy.toString());\r
+                 asyncProcessExecutorService.executeDeployProcess(deploy);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse(null,"in progress","not started","not started","not started",deploy.getSitename(),null,null,null),HttpStatus.OK);\r
+       }\r
+\r
+       \r
+       \r
+       \r
+       @PostMapping("/airship/")\r
+       public ResponseEntity<BuildResponse> airship(@RequestBody Airship airship) {\r
+                 logger.debug("Request received for airship {} ",airship.toString());\r
+                 asyncProcessExecutorService.executeAirshipProcess(airship);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse(null,null,null,null,"in progress",airship.getSitename(),null,null,null),HttpStatus.OK);\r
+         }\r
+\r
+       \r
+       \r
+         @PostMapping("/tempest/")\r
+         public ResponseEntity<BuildResponse> tempest(@RequestBody Tempest tempest) {\r
+                 logger.debug("Request received for onap ",tempest.toString());\r
+                 asyncProcessExecutorService.executeTempestProcess(tempest);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse(null,null,null,null,null,tempest.getSitename(),null,null,"in progress"),HttpStatus.OK);\r
+       }\r
+       \r
+       \r
+       \r
+       \r
+         @PostMapping("/apache/")\r
+         public ResponseEntity<BuildResponse> apache(@RequestBody Apache apache) {\r
+                 logger.debug("Request received for onap ",apache.toString());\r
+                 asyncProcessExecutorService.executeApacheProcess(apache);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse(null,null,null,null,null,apache.getSitename(),null,"in progress",null),HttpStatus.OK);\r
+       }\r
+       \r
+       \r
+       \r
+       \r
+ @PostMapping("/onap/")\r
+         public ResponseEntity<BuildResponse> onap(@RequestBody Onap onap) {\r
+                 logger.debug("Request received for onap ",onap.toString());\r
+                 asyncProcessExecutorService.executeOnapProcess(onap);\r
+                 return new ResponseEntity<BuildResponse>(new BuildResponse(null,null,null,null,null,onap.getSitename(),"in progress",null,null),HttpStatus.OK);\r
+       }\r
+}\r
index 0d64278..895938a 100644 (file)
@@ -1,66 +1,67 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.RemoteScriptExecutionService;
-
-
-
-@Component
-public class DeployPostVerficationRemoteScriptExecutor implements JavaDelegate {
-
-       
-       
-        private static Logger logger = LoggerFactory.getLogger(DeployPostVerficationRemoteScriptExecutor.class);
-       
-       @Autowired
-       RemoteScriptExecutionService remoteScriptExecutionService;
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-       public void execute(DelegateExecution ctx) throws Exception {
-               String  remotserver=(String)ctx.getVariable("remotserver");
-               int  portnumner=(Integer)ctx.getVariable("port");
-               String  username=(String)ctx.getVariable("username");
-               String  password=(String)ctx.getVariable("password");
-               String  filename=(String)ctx.getVariable("postverificationscript");
-               String fileparams=(String)ctx.getVariable("postverificationScriptparams");
-               String  srcdir=(String)ctx.getVariable("srcdir");
-               String destdir=(String)ctx.getVariable("destdir");
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "completed","inprogress","Boston"));
-               logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} ,fileparams={},src dir={},dest dir={}",
-                               remotserver,portnumner,username,password,filename,fileparams,srcdir,destdir);
-               
-               String command="sh  " +destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");
-               logger.debug("Execution command {}",command);
-               remoteScriptExecutionService.executeRemoteScript(remotserver,username,password,portnumner,filename,fileparams,srcdir,destdir,command);
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "completed","completed","Boston"));
-       }
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.RemoteScriptExecutionService;\r
+\r
+\r
+\r
+@Component\r
+public class DeployPostVerficationRemoteScriptExecutor implements JavaDelegate {\r
+\r
+       \r
+       \r
+        private static Logger logger = LoggerFactory.getLogger(DeployPostVerficationRemoteScriptExecutor.class);\r
+       \r
+       @Autowired\r
+       RemoteScriptExecutionService remoteScriptExecutionService;\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+       public void execute(DelegateExecution ctx) throws Exception {\r
+               String  remotserver=(String)ctx.getVariable("remotserver");\r
+               int  portnumner=(Integer)ctx.getVariable("port");\r
+               String  username=(String)ctx.getVariable("username");\r
+               String  password=(String)ctx.getVariable("password");\r
+               String  filename=(String)ctx.getVariable("postverificationscript");\r
+               String fileparams=(String)ctx.getVariable("postverificationScriptparams");\r
+               String  srcdir=(String)ctx.getVariable("srcdir");\r
+               String destdir=(String)ctx.getVariable("destdir");\r
+               String sitename=(String)ctx.getVariable("sitename");\r
+               \r
+               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "completed","inprogress",sitename,null,null,null));\r
+               logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} ,fileparams={},src dir={},dest dir={}",\r
+                               remotserver,portnumner,username,password,filename,fileparams,srcdir,destdir);\r
+               \r
+               String command="sh  " +destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");\r
+               logger.debug("Execution command {}",command);\r
+               remoteScriptExecutionService.executeRemoteScript(remotserver,username,password,portnumner,filename,fileparams,srcdir,destdir,command);\r
+               \r
+       \r
+       }\r
+\r
+}\r
index 328f0dd..df9e36c 100644 (file)
@@ -1,76 +1,77 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.RemoteDeploymentVerificationService;
-
-
-
-@Component
-public class DeployRemoteDeploymentVerificationDelegate implements JavaDelegate {
-
-       private static Logger logger = LoggerFactory.getLogger(DeployRemoteDeploymentVerificationDelegate.class);
-       
-       @Autowired
-       RemoteDeploymentVerificationService remotedeploymentVerificationService;
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-
- public void execute(DelegateExecution ctx) throws Exception {
-               
-               try {
-                       String  verifierFilename=(String)ctx.getVariable("verifier");
-                       int waittime=(Integer)ctx.getVariable("waittime");
-                       int iterations=(Integer)ctx.getVariable("iterations");
-                       String  remotserver=(String)ctx.getVariable("remotserver");
-                       int  portnumner=(Integer)ctx.getVariable("port");
-                       String  username=(String)ctx.getVariable("username");
-                       String  password=(String)ctx.getVariable("password");
-                       String  srcdir=(String)ctx.getVariable("srcdir");
-                       String  destdir=(String)ctx.getVariable("destdir");
-                       String  filepparams=(String)ctx.getVariable("verifierfileparams");
-                       
-                       deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "inprogress","not started", "Boston"));
-                       
-                       logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} , waittime : {},No of iterations :{}",
-                                       remotserver,portnumner,username,password,verifierFilename,srcdir,destdir,waittime,iterations);
-                       
-                       String command="sh  " +destdir+"/"+verifierFilename+"  "+(filepparams!=null?filepparams.replaceAll(",", "  "):" ");
-                       logger.debug("Execution command {}",command);
-                       remotedeploymentVerificationService.executeScript(remotserver,username,password,portnumner,verifierFilename,filepparams,srcdir,destdir,waittime,iterations,command);
-               }catch(TaskExecutorException ex) {
-                       throw ex;
-               }
-               
-               
-       }
-
-}
-
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.RemoteDeploymentVerificationService;\r
+\r
+\r
+\r
+@Component\r
+public class DeployRemoteDeploymentVerificationDelegate implements JavaDelegate {\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(DeployRemoteDeploymentVerificationDelegate.class);\r
+       \r
+       @Autowired\r
+       RemoteDeploymentVerificationService remotedeploymentVerificationService;\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+\r
+ public void execute(DelegateExecution ctx) throws Exception {\r
+               \r
+               try {\r
+                       String  verifierFilename=(String)ctx.getVariable("verifier");\r
+                       int waittime=(Integer)ctx.getVariable("waittime");\r
+                       int iterations=(Integer)ctx.getVariable("iterations");\r
+                       String  remotserver=(String)ctx.getVariable("remotserver");\r
+                       int  portnumner=(Integer)ctx.getVariable("port");\r
+                       String  username=(String)ctx.getVariable("username");\r
+                       String  password=(String)ctx.getVariable("password");\r
+                       String  srcdir=(String)ctx.getVariable("srcdir");\r
+                       String  destdir=(String)ctx.getVariable("destdir");\r
+                       String  filepparams=(String)ctx.getVariable("verifierfileparams");\r
+                       String sitename=(String)ctx.getVariable("sitename");\r
+                       \r
+                       deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "inprogress","not started", sitename,null,null,null));\r
+                       \r
+                       logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} , waittime : {},No of iterations :{}",\r
+                                       remotserver,portnumner,username,password,verifierFilename,srcdir,destdir,waittime,iterations);\r
+                       \r
+                       String command="sh  " +destdir+"/"+verifierFilename+"  "+(filepparams!=null?filepparams.replaceAll(",", "  "):" ");\r
+                       logger.debug("Execution command {}",command);\r
+                       remotedeploymentVerificationService.executeScript(remotserver,username,password,portnumner,verifierFilename,filepparams,srcdir,destdir,waittime,iterations,command);\r
+               }catch(TaskExecutorException ex) {\r
+                       throw ex;\r
+               }\r
+               \r
+               \r
+       }\r
+\r
+}\r
+\r
index c6cf733..96f4b4a 100644 (file)
@@ -1,64 +1,65 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.RemoteScriptExecutionService;
-
-
-
-@Component
-public class DeployRemoteScriptExecutorTaskDelegate implements JavaDelegate {
-
-       
-       
-        private static Logger logger = LoggerFactory.getLogger(DeployRemoteScriptExecutorTaskDelegate.class);
-       
-       @Autowired
-       RemoteScriptExecutionService remoteScriptExecutionService;
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-       public void execute(DelegateExecution ctx) throws Exception {
-               String  remotserver=(String)ctx.getVariable("remotserver");
-               int  portnumner=(Integer)ctx.getVariable("port");
-               String  username=(String)ctx.getVariable("username");
-               String  password=(String)ctx.getVariable("password");
-               String  filename=(String)ctx.getVariable("filename");
-               String fileparams=(String)ctx.getVariable("fileparams");
-               String  srcdir=(String)ctx.getVariable("srcdir");
-               String destdir=(String)ctx.getVariable("destdir");
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "inprogress", "not started","not started", "Boston"));
-               logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} ,fileparams={},src dir={},dest dir={}",
-                               remotserver,portnumner,username,password,filename,fileparams,srcdir,destdir);
-               
-               String command="sh  " +destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");
-               logger.debug("Execution command {}",command);
-               remoteScriptExecutionService.executeRemoteScript(remotserver,username,password,portnumner,filename,fileparams,srcdir,destdir,command);
-       }
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.RemoteScriptExecutionService;\r
+\r
+\r
+\r
+@Component\r
+public class DeployRemoteScriptExecutorTaskDelegate implements JavaDelegate {\r
+\r
+       \r
+       \r
+        private static Logger logger = LoggerFactory.getLogger(DeployRemoteScriptExecutorTaskDelegate.class);\r
+       \r
+       @Autowired\r
+       RemoteScriptExecutionService remoteScriptExecutionService;\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+       public void execute(DelegateExecution ctx) throws Exception {\r
+               String  remotserver=(String)ctx.getVariable("remotserver");\r
+               int  portnumner=(Integer)ctx.getVariable("port");\r
+               String  username=(String)ctx.getVariable("username");\r
+               String  password=(String)ctx.getVariable("password");\r
+               String  filename=(String)ctx.getVariable("filename");\r
+               String fileparams=(String)ctx.getVariable("fileparams");\r
+               String  srcdir=(String)ctx.getVariable("srcdir");\r
+               String destdir=(String)ctx.getVariable("destdir");\r
+               String sitename=(String)ctx.getVariable("sitename");\r
+               \r
+               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "inprogress", "not started","not started", sitename,null,null,null));\r
+               logger.debug("task execution started remotserver {} , portnumner {},username {}, password {},filename : {} ,fileparams={},src dir={},dest dir={}",\r
+                               remotserver,portnumner,username,password,filename,fileparams,srcdir,destdir);\r
+               \r
+               String command="sh  " +destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");\r
+               logger.debug("Execution command {}",command);\r
+               remoteScriptExecutionService.executeRemoteScript(remotserver,username,password,portnumner,filename,fileparams,srcdir,destdir,command);\r
+       }\r
+\r
+}\r
index 32654d1..a708b8a 100644 (file)
@@ -1,51 +1,50 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.ScriptExecutionService;
-
-
-@Component
-public class DeployScriptExecutorTaskDelegate implements JavaDelegate {
-
-        private static Logger logger = LoggerFactory.getLogger(DeployScriptExecutorTaskDelegate.class);
-       
-       @Autowired
-       ScriptExecutionService scriptExecutionService;
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-       public void execute(DelegateExecution ctx) throws Exception {
-                       deployResponseSenderService.sendResponse(new BuildResponse("completed", "inprogress", "not started", "not started","not started","Boston"));
-                       String  filepath=(String)ctx.getVariable("filepath");
-                       logger.debug("task execution started  :"+filepath);
-                       scriptExecutionService.executeScript(filepath);
-               
-       }
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.ScriptExecutionService;\r
+\r
+\r
+@Component\r
+public class DeployScriptExecutorTaskDelegate implements JavaDelegate {\r
+\r
+        private static Logger logger = LoggerFactory.getLogger(DeployScriptExecutorTaskDelegate.class);\r
+       \r
+       @Autowired\r
+       ScriptExecutionService scriptExecutionService;\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+       public void execute(DelegateExecution ctx) throws Exception {\r
+                       \r
+                       String  filepath=(String)ctx.getVariable("filepath");\r
+                       logger.debug("task execution started  :"+filepath);\r
+                       scriptExecutionService.executeScript(filepath);\r
+               \r
+       }\r
+\r
+}\r
index 4d5dc22..dda3d73 100644 (file)
@@ -1,62 +1,66 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.DeploymentVerificationService;
-
-
-
-@Component
-public class DeploymentVerificationDelegate implements JavaDelegate {
-
-       private static Logger logger = LoggerFactory.getLogger(DeploymentVerificationDelegate.class);
-       
-       @Autowired
-       DeploymentVerificationService deploymentVerificationService;
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-       public void execute(DelegateExecution ctx) throws Exception {
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "inprogress","not started", "Boston"));
-               try {
-                       String  verifierFilepath=(String)ctx.getVariable("verifier");
-                       int waittime=(Integer)ctx.getVariable("waittime");
-                       int iterations=(Integer)ctx.getVariable("iterations");
-                       logger.debug("task execution started  filename : {} , waittime : {},No of iterations :{}",verifierFilepath,waittime,iterations);
-                       deploymentVerificationService.executeScript(verifierFilepath,waittime,iterations);
-               }catch(TaskExecutorException ex) {
-                       throw ex;
-               }
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "completed","not started","Boston"));
-       }
-
-}
-
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.DeploymentVerificationService;\r
+\r
+\r
+\r
+@Component\r
+public class DeploymentVerificationDelegate implements JavaDelegate {\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(DeploymentVerificationDelegate.class);\r
+       \r
+       @Autowired\r
+       DeploymentVerificationService deploymentVerificationService;\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+       public void execute(DelegateExecution ctx) throws Exception {\r
+               \r
+               String sitename=(String)ctx.getVariable("sitename");\r
+               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "inprogress","not started",sitename,null,null,null));\r
+               \r
+               try {\r
+                       String  verifierFilepath=(String)ctx.getVariable("verifier");\r
+                       int waittime=(Integer)ctx.getVariable("waittime");\r
+                       int iterations=(Integer)ctx.getVariable("iterations");\r
+                       \r
+                       \r
+                       logger.debug("task execution started  filename : {} , waittime : {},No of iterations :{}",verifierFilepath,waittime,iterations);\r
+                       deploymentVerificationService.executeScript(verifierFilepath,waittime,iterations);\r
+               }catch(TaskExecutorException ex) {\r
+                       throw ex;\r
+               }\r
+               \r
+               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "completed", "completed","not started",sitename,null,null,null));\r
+       }\r
+\r
+}\r
+\r
index e4ffcc0..8145f66 100644 (file)
@@ -1,53 +1,54 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.delegate;
-
-
-import org.camunda.bpm.engine.delegate.DelegateExecution;
-import org.camunda.bpm.engine.delegate.JavaDelegate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-import com.akraino.bpm.service.ScriptExecutionService;
-
-
-@Component
-public class WinScpScriptDelegate implements JavaDelegate {
-
-       private static Logger logger = LoggerFactory.getLogger(WinScpScriptDelegate.class);
-       
-       @Autowired 
-       DeployResponseSenderService deployResponseSenderService;
-       
-       @Autowired
-       ScriptExecutionService scriptExecutionService;
-       
-       public void execute(DelegateExecution ctx) throws Exception {
-               
-               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "inprogress", "not started","not started","Boston"));
-               String filepath=(String)ctx.getVariable("ScpScriptFilepath");
-                       logger.debug("Win SCP task execution started  :"+filepath);
-                       scriptExecutionService.executeScript(filepath);
-               
-               
-       }
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.delegate;\r
+\r
+\r
+import org.camunda.bpm.engine.delegate.DelegateExecution;\r
+import org.camunda.bpm.engine.delegate.JavaDelegate;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.stereotype.Component;\r
+\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+import com.akraino.bpm.service.ScriptExecutionService;\r
+\r
+\r
+@Component\r
+public class WinScpScriptDelegate implements JavaDelegate {\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(WinScpScriptDelegate.class);\r
+       \r
+       @Autowired \r
+       DeployResponseSenderService deployResponseSenderService;\r
+       \r
+       @Autowired\r
+       ScriptExecutionService scriptExecutionService;\r
+       \r
+       public void execute(DelegateExecution ctx) throws Exception {\r
+               \r
+               String sitename=(String)ctx.getVariable("sitename");\r
+               deployResponseSenderService.sendResponse(new BuildResponse("completed", "completed", "inprogress", "not started","not started",sitename,null,null,null));\r
+               String filepath=(String)ctx.getVariable("ScpScriptFilepath");\r
+                       logger.debug("Win SCP task execution started  :"+filepath);\r
+                       scriptExecutionService.executeScript(filepath);\r
+               \r
+               \r
+       }\r
+\r
+}\r
index 9a59e2c..158d635 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Airship {
-       
-       private String filepath;
-       private String fileparams;
-       private String winscpdir;
-       private String winscpfilepath;
-       private String winscpfileparams;
-       private String remotserver;
-       private int port;
-       private String username;
-       private String password;
-       private String destdir;
-       private String remotefilename;
-       private String remotefileparams;
-       
-       
-       public String getFilepath() {
-               return filepath;
-       }
-       public void setFilepath(String filepath) {
-               this.filepath = filepath;
-       }
-       public String getFileparams() {
-               return fileparams;
-       }
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-       public String getWinscpfilepath() {
-               return winscpfilepath;
-       }
-       public void setWinscpfilepath(String winscpfilepath) {
-               this.winscpfilepath = winscpfilepath;
-       }
-       public String getWinscpfileparams() {
-               return winscpfileparams;
-       }
-       public void setWinscpfileparams(String winscpfileparams) {
-               this.winscpfileparams = winscpfileparams;
-       }
-       public String getDestdir() {
-               return destdir;
-       }
-       public void setDestdir(String destdir) {
-               this.destdir = destdir;
-       }
-       
-       public String getRemotserver() {
-               return remotserver;
-       }
-       public void setRemotserver(String remotserver) {
-               this.remotserver = remotserver;
-       }
-       public int getPort() {
-               return port;
-       }
-       public void setPort(int port) {
-               this.port = port;
-       }
-       public String getUsername() {
-               return username;
-       }
-       public void setUsername(String username) {
-               this.username = username;
-       }
-       public String getPassword() {
-               return password;
-       }
-       public void setPassword(String password) {
-               this.password = password;
-       }
-       public String getRemotefilename() {
-               return remotefilename;
-       }
-       public void setRemotefilename(String remotefilename) {
-               this.remotefilename = remotefilename;
-       }
-       public String getRemotefileparams() {
-               return remotefileparams;
-       }
-       public void setRemotefileparams(String remotefileparams) {
-               this.remotefileparams = remotefileparams;
-       }
-       public String getWinscpdir() {
-               return winscpdir;
-       }
-       public void setWinscpdir(String winscpdir) {
-               this.winscpdir = winscpdir;
-       }
-       @Override
-       public String toString() {
-               return "Airship [filepath=" + filepath + ", fileparams=" + fileparams + ", winscpdir=" + winscpdir
-                               + ", winscpfilepath=" + winscpfilepath + ", winscpfileparams=" + winscpfileparams + ", remotserver="
-                               + remotserver + ", port=" + port + ", username=" + username + ", password=" + password + ", destdir="
-                               + destdir + ", remotefilename=" + remotefilename + ", remotefileparams=" + remotefileparams + "]";
-       }
-       
-       
-       
-       
-       
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Airship {\r
+       \r
+       private String sitename;\r
+       private String filepath;\r
+       private String fileparams;\r
+       private String winscpdir;\r
+       private String winscpfilepath;\r
+       private String winscpfileparams;\r
+       private String remotserver;\r
+       private int port;\r
+       private String username;\r
+       private String password;\r
+       private String destdir;\r
+       private String remotefilename;\r
+       private String remotefileparams;\r
+       \r
+       \r
+       public String getFilepath() {\r
+               return filepath;\r
+       }\r
+       public void setFilepath(String filepath) {\r
+               this.filepath = filepath;\r
+       }\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+       public String getWinscpfilepath() {\r
+               return winscpfilepath;\r
+       }\r
+       public void setWinscpfilepath(String winscpfilepath) {\r
+               this.winscpfilepath = winscpfilepath;\r
+       }\r
+       public String getWinscpfileparams() {\r
+               return winscpfileparams;\r
+       }\r
+       public void setWinscpfileparams(String winscpfileparams) {\r
+               this.winscpfileparams = winscpfileparams;\r
+       }\r
+       public String getDestdir() {\r
+               return destdir;\r
+       }\r
+       public void setDestdir(String destdir) {\r
+               this.destdir = destdir;\r
+       }\r
+       \r
+       public String getRemotserver() {\r
+               return remotserver;\r
+       }\r
+       public void setRemotserver(String remotserver) {\r
+               this.remotserver = remotserver;\r
+       }\r
+       public int getPort() {\r
+               return port;\r
+       }\r
+       public void setPort(int port) {\r
+               this.port = port;\r
+       }\r
+       public String getUsername() {\r
+               return username;\r
+       }\r
+       public void setUsername(String username) {\r
+               this.username = username;\r
+       }\r
+       public String getPassword() {\r
+               return password;\r
+       }\r
+       public void setPassword(String password) {\r
+               this.password = password;\r
+       }\r
+       public String getRemotefilename() {\r
+               return remotefilename;\r
+       }\r
+       public void setRemotefilename(String remotefilename) {\r
+               this.remotefilename = remotefilename;\r
+       }\r
+       public String getRemotefileparams() {\r
+               return remotefileparams;\r
+       }\r
+       public void setRemotefileparams(String remotefileparams) {\r
+               this.remotefileparams = remotefileparams;\r
+       }\r
+       public String getWinscpdir() {\r
+               return winscpdir;\r
+       }\r
+       public void setWinscpdir(String winscpdir) {\r
+               this.winscpdir = winscpdir;\r
+       }\r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+       @Override\r
+       public String toString() {\r
+               return "Airship [sitename=" + sitename + ", filepath=" + filepath + ", fileparams=" + fileparams\r
+                               + ", winscpdir=" + winscpdir + ", winscpfilepath=" + winscpfilepath + ", winscpfileparams="\r
+                               + winscpfileparams + ", remotserver=" + remotserver + ", port=" + port + ", username=" + username\r
+                               + ", password=" + password + ", destdir=" + destdir + ", remotefilename=" + remotefilename\r
+                               + ", remotefileparams=" + remotefileparams + "]";\r
+       }\r
+       \r
+       \r
+       \r
+       \r
+       \r
+ }\r
index eef8f96..78ed8dc 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Apache {
-       
-       private String remoteserver;
-       private String username;
-       private String  password;
-       private int portnumber;
-       private String srcdir;
-       private String destdir;
-       private String filename;
-       private String fileparams;
-       private String deploymentverifier;
-       private String verifierparams;
-       int noofiterations;
-       int waittime;
-       String filetrasferscript;
-       String filetransferparams;
-       
-       
-       public String getSrcdir() {
-               return srcdir;
-       }
-
-
-       public void setSrcdir(String srcdir) {
-               this.srcdir = srcdir;
-       }
-
-
-       public String getDestdir() {
-               return destdir;
-       }
-
-
-       public void setDestdir(String destdir) {
-               this.destdir = destdir;
-       }
-
-
-       public String getRemoteserver() {
-               return remoteserver;
-       }
-
-
-       public void setRemoteserver(String remoteserver) {
-               this.remoteserver = remoteserver;
-       }
-
-
-       public String getUsername() {
-               return username;
-       }
-
-
-       public void setUsername(String username) {
-               this.username = username;
-       }
-
-
-       public String getPassword() {
-               return password;
-       }
-
-
-       public void setPassword(String password) {
-               this.password = password;
-       }
-
-
-       public int getPortnumber() {
-               return portnumber;
-       }
-
-
-       public void setPortnumber(int portnumber) {
-               this.portnumber = portnumber;
-       }
-
-
-       
-
-
-       public String getFilename() {
-               return filename;
-       }
-
-
-       public void setFilename(String filename) {
-               this.filename = filename;
-       }
-
-
-       public String getFileparams() {
-               return fileparams;
-       }
-
-
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-
-
-       public String getDeploymentverifier() {
-               return deploymentverifier;
-       }
-
-
-       public void setDeploymentverifier(String deploymentverifier) {
-               this.deploymentverifier = deploymentverifier;
-       }
-
-
-       public int getNoofiterations() {
-               return noofiterations;
-       }
-
-
-       public void setNoofiterations(int noofiterations) {
-               this.noofiterations = noofiterations;
-       }
-
-
-       public int getWaittime() {
-               return waittime;
-       }
-
-
-       public void setWaittime(int waittime) {
-               this.waittime = waittime;
-       }
-
-
-       
-
-       public String getVerifierparams() {
-               return verifierparams;
-       }
-
-
-       public void setVerifierparams(String verifierparams) {
-               this.verifierparams = verifierparams;
-       }
-
-
-       public String getFiletrasferscript() {
-               return filetrasferscript;
-       }
-
-
-       public void setFiletrasferscript(String filetrasferscript) {
-               this.filetrasferscript = filetrasferscript;
-       }
-
-
-       public String getFiletransferparams() {
-               return filetransferparams;
-       }
-
-
-       public void setFiletransferparams(String filetransferparams) {
-               this.filetransferparams = filetransferparams;
-       }
-
-
-       @Override
-       public String toString() {
-               return "Apache [remoteserver=" + remoteserver + ", username=" + username + ", password=" + password
-                               + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir=" + destdir + ", filename="
-                               + filename + ", fileparams=" + fileparams + ", deploymentverifier=" + deploymentverifier
-                               + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations + ", waittime=" + waittime
-                               + ", filetrasferscript=" + filetrasferscript + ", filetransferparams=" + filetransferparams + "]";
-       }
-
-       
-       
-
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Apache {\r
+       \r
+       private String sitename;\r
+       private String remoteserver;\r
+       private String username;\r
+       private String  password;\r
+       private int portnumber;\r
+       private String srcdir;\r
+       private String destdir;\r
+       private String filename;\r
+       private String fileparams;\r
+       private String deploymentverifier;\r
+       private String verifierparams;\r
+       int noofiterations;\r
+       int waittime;\r
+       String filetrasferscript;\r
+       String filetransferparams;\r
+       \r
+       \r
+       public String getSrcdir() {\r
+               return srcdir;\r
+       }\r
+\r
+\r
+       public void setSrcdir(String srcdir) {\r
+               this.srcdir = srcdir;\r
+       }\r
+\r
+\r
+       public String getDestdir() {\r
+               return destdir;\r
+       }\r
+\r
+\r
+       public void setDestdir(String destdir) {\r
+               this.destdir = destdir;\r
+       }\r
+\r
+\r
+       public String getRemoteserver() {\r
+               return remoteserver;\r
+       }\r
+\r
+\r
+       public void setRemoteserver(String remoteserver) {\r
+               this.remoteserver = remoteserver;\r
+       }\r
+\r
+\r
+       public String getUsername() {\r
+               return username;\r
+       }\r
+\r
+\r
+       public void setUsername(String username) {\r
+               this.username = username;\r
+       }\r
+\r
+\r
+       public String getPassword() {\r
+               return password;\r
+       }\r
+\r
+\r
+       public void setPassword(String password) {\r
+               this.password = password;\r
+       }\r
+\r
+\r
+       public int getPortnumber() {\r
+               return portnumber;\r
+       }\r
+\r
+\r
+       public void setPortnumber(int portnumber) {\r
+               this.portnumber = portnumber;\r
+       }\r
+\r
+\r
+       \r
+\r
+\r
+       public String getFilename() {\r
+               return filename;\r
+       }\r
+\r
+\r
+       public void setFilename(String filename) {\r
+               this.filename = filename;\r
+       }\r
+\r
+\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+\r
+\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+\r
+\r
+       public String getDeploymentverifier() {\r
+               return deploymentverifier;\r
+       }\r
+\r
+\r
+       public void setDeploymentverifier(String deploymentverifier) {\r
+               this.deploymentverifier = deploymentverifier;\r
+       }\r
+\r
+\r
+       public int getNoofiterations() {\r
+               return noofiterations;\r
+       }\r
+\r
+\r
+       public void setNoofiterations(int noofiterations) {\r
+               this.noofiterations = noofiterations;\r
+       }\r
+\r
+\r
+       public int getWaittime() {\r
+               return waittime;\r
+       }\r
+\r
+\r
+       public void setWaittime(int waittime) {\r
+               this.waittime = waittime;\r
+       }\r
+\r
+\r
+       \r
+\r
+       public String getVerifierparams() {\r
+               return verifierparams;\r
+       }\r
+\r
+\r
+       public void setVerifierparams(String verifierparams) {\r
+               this.verifierparams = verifierparams;\r
+       }\r
+\r
+\r
+       public String getFiletrasferscript() {\r
+               return filetrasferscript;\r
+       }\r
+\r
+\r
+       public void setFiletrasferscript(String filetrasferscript) {\r
+               this.filetrasferscript = filetrasferscript;\r
+       }\r
+\r
+\r
+       public String getFiletransferparams() {\r
+               return filetransferparams;\r
+       }\r
+\r
+\r
+       public void setFiletransferparams(String filetransferparams) {\r
+               this.filetransferparams = filetransferparams;\r
+       }\r
+\r
+\r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+\r
+\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+\r
+\r
+       @Override\r
+       public String toString() {\r
+               return "Apache [sitename=" + sitename + ", remoteserver=" + remoteserver + ", username=" + username\r
+                               + ", password=" + password + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir="\r
+                               + destdir + ", filename=" + filename + ", fileparams=" + fileparams + ", deploymentverifier="\r
+                               + deploymentverifier + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations\r
+                               + ", waittime=" + waittime + ", filetrasferscript=" + filetrasferscript + ", filetransferparams="\r
+                               + filetransferparams + "]";\r
+       }\r
+\r
+\r
+       \r
+       \r
+       \r
+\r
+ }\r
index d8a0cd6..6c2c58b 100644 (file)
@@ -1,52 +1,63 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Build {
-       
-       private String filepath;
-       private String fileparams;
-       private String targetfolder;
-       
-       
-       public String getFilepath() {
-               return filepath;
-       }
-       public void setFilepath(String filepath) {
-               this.filepath = filepath;
-       }
-       public String getFileparams() {
-               return fileparams;
-       }
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-       public String getTargetfolder() {
-               return targetfolder;
-       }
-       public void setTargetfolder(String targetfolder) {
-               this.targetfolder = targetfolder;
-       }
-       @Override
-       public String toString() {
-               return "Build [filepath=" + filepath + ", fileparams=" + fileparams + ", targetfolder=" + targetfolder + "]";
-       }
-       
-       
-       
-       
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Build {\r
+       \r
+       private String sitename;\r
+       private String filepath;\r
+       private String fileparams;\r
+       private String targetfolder;\r
+       \r
+       \r
+       \r
+       \r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+       public String getFilepath() {\r
+               return filepath;\r
+       }\r
+       public void setFilepath(String filepath) {\r
+               this.filepath = filepath;\r
+       }\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+       public String getTargetfolder() {\r
+               return targetfolder;\r
+       }\r
+       public void setTargetfolder(String targetfolder) {\r
+               this.targetfolder = targetfolder;\r
+       }\r
+       \r
+       @Override\r
+       public String toString() {\r
+               return "Build [sitename=" + sitename + ", filepath=" + filepath + ", fileparams=" + fileparams\r
+                               + ", targetfolder=" + targetfolder + "]";\r
+       }\r
+       \r
+       \r
+       \r
+       \r
+}\r
index a365156..c81596a 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class BuildResponse {
-       
-       private String buildStatus;
-       private String createTarStatus;
-       private String genesisNodeStatus;
-       private String deployToolsStatus;
-       private String deployStatus;
-       private String siteName;
-       
-       
-       public BuildResponse(String buildStatus, String createTarStatus, String genesisNodeStatus, String deployToolsStatus,String deployStatus,
-                       String siteName) {
-               super();
-               this.buildStatus = buildStatus;
-               this.createTarStatus = createTarStatus;
-               this.genesisNodeStatus = genesisNodeStatus;
-               this.deployToolsStatus = deployToolsStatus;
-               this.deployStatus=deployStatus;
-               this.siteName = "siteName";
-       }
-
-
-       public String getBuildStatus() {
-               return buildStatus;
-       }
-
-
-       public void setBuildStatus(String buildStatus) {
-               this.buildStatus = buildStatus;
-       }
-
-       public String getCreateTarStatus() {
-               return createTarStatus;
-       }
-
-       public void setCreateTarStatus(String createTarStatus) {
-               this.createTarStatus = createTarStatus;
-       }
-
-
-       public String getGenesisNodeStatus() {
-               return genesisNodeStatus;
-       }
-
-
-       public void setGenesisNodeStatus(String genesisNodeStatus) {
-               this.genesisNodeStatus = genesisNodeStatus;
-       }
-
-
-       public String getDeployToolsStatus() {
-               return deployToolsStatus;
-       }
-
-
-       public void setDeployToolsStatus(String deployToolsStatus) {
-               this.deployToolsStatus = deployToolsStatus;
-       }
-
-
-       public String getSiteName() {
-               return siteName;
-       }
-
-       public void setSiteName(String siteName) {
-               this.siteName = siteName;
-       }
-
-       
-       
-
-       public String getDeployStatus() {
-               return deployStatus;
-       }
-
-
-       public void setDeployStatus(String deployStatus) {
-               this.deployStatus = deployStatus;
-       }
-
-
-       @Override
-       public String toString() {
-               return "BuildResponse [buildStatus=" + buildStatus + ", createTarStatus=" + createTarStatus
-                               + ", genesisNodeStatus=" + genesisNodeStatus + ", deployToolsStatus=" + deployToolsStatus
-                               + ", deployStatus=" + deployStatus + ", siteName=" + siteName + "]";
-       }
-       
-
-
-       
-       
-       
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class BuildResponse {\r
+       \r
+       private String siteName;\r
+       private String buildStatus;\r
+       private String createTarStatus;\r
+       private String genesisNodeStatus;\r
+       private String deployToolsStatus;\r
+       private String deployStatus;\r
+       private String onapStatus;\r
+       private String vCDNStatus;\r
+       private String tempestStatus;\r
+       \r
+       public BuildResponse(String buildStatus, String createTarStatus, String genesisNodeStatus, String deployToolsStatus,String deployStatus,\r
+                       String siteName,String onapStatus,String vCDNStatus,String tempestStatus) {\r
+               super();\r
+               this.buildStatus = buildStatus;\r
+               this.createTarStatus = createTarStatus;\r
+               this.genesisNodeStatus = genesisNodeStatus;\r
+               this.deployToolsStatus = deployToolsStatus;\r
+               this.deployStatus=deployStatus;\r
+               this.siteName = siteName;\r
+               this.onapStatus=onapStatus;\r
+               this.vCDNStatus=vCDNStatus;\r
+               this.tempestStatus=tempestStatus;\r
+       }\r
+\r
+\r
+       public String getBuildStatus() {\r
+               return buildStatus;\r
+       }\r
+\r
+\r
+       public void setBuildStatus(String buildStatus) {\r
+               this.buildStatus = buildStatus;\r
+       }\r
+\r
+       public String getCreateTarStatus() {\r
+               return createTarStatus;\r
+       }\r
+\r
+       public void setCreateTarStatus(String createTarStatus) {\r
+               this.createTarStatus = createTarStatus;\r
+       }\r
+\r
+\r
+       public String getGenesisNodeStatus() {\r
+               return genesisNodeStatus;\r
+       }\r
+\r
+\r
+       public void setGenesisNodeStatus(String genesisNodeStatus) {\r
+               this.genesisNodeStatus = genesisNodeStatus;\r
+       }\r
+\r
+\r
+       public String getDeployToolsStatus() {\r
+               return deployToolsStatus;\r
+       }\r
+\r
+\r
+       public void setDeployToolsStatus(String deployToolsStatus) {\r
+               this.deployToolsStatus = deployToolsStatus;\r
+       }\r
+\r
+\r
+       public String getSiteName() {\r
+               return siteName;\r
+       }\r
+\r
+       public void setSiteName(String siteName) {\r
+               this.siteName = siteName;\r
+       }\r
+\r
+       \r
+       \r
+\r
+       public String getDeployStatus() {\r
+               return deployStatus;\r
+       }\r
+\r
+\r
+       public void setDeployStatus(String deployStatus) {\r
+               this.deployStatus = deployStatus;\r
+       }\r
+\r
+\r
+       public String getOnapStatus() {\r
+               return onapStatus;\r
+       }\r
+\r
+\r
+       public void setOnapStatus(String onapStatus) {\r
+               this.onapStatus = onapStatus;\r
+       }\r
+\r
+\r
+       public String getvCDNStatus() {\r
+               return vCDNStatus;\r
+       }\r
+\r
+\r
+       public void setvCDNStatus(String vCDNStatus) {\r
+               this.vCDNStatus = vCDNStatus;\r
+       }\r
+\r
+\r
+       public String getTempestStatus() {\r
+               return tempestStatus;\r
+       }\r
+\r
+\r
+       public void setTempestStatus(String tempestStatus) {\r
+               this.tempestStatus = tempestStatus;\r
+       }\r
+\r
+       \r
+}\r
index 221a981..fc0b7ff 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Deploy {
-       
-       private String filepath;
-       private String fileparams;
-       private String winscpfilepath;
-       private String winscpfileparams;
-       private String remotserver;
-       private int port;
-       private String username;
-       private String password;
-       private String destdir;
-       private String remotefilename;
-       private String remotefileparams;
-       private String deploymentverifier;
-       private String deploymentverifierfileparams;
-       int noofiterations;
-       int waittime;
-       String postverificationscript;
-       String postverificationScriptparams;
-       
-       public String getFilepath() {
-               return filepath;
-       }
-       public void setFilepath(String filepath) {
-               this.filepath = filepath;
-       }
-       public String getFileparams() {
-               return fileparams;
-       }
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-       public String getWinscpfilepath() {
-               return winscpfilepath;
-       }
-       public void setWinscpfilepath(String winscpfilepath) {
-               this.winscpfilepath = winscpfilepath;
-       }
-       public String getWinscpfileparams() {
-               return winscpfileparams;
-       }
-       public void setWinscpfileparams(String winscpfileparams) {
-               this.winscpfileparams = winscpfileparams;
-       }
-       public String getDestdir() {
-               return destdir;
-       }
-       public void setDestdir(String destdir) {
-               this.destdir = destdir;
-       }
-       
-       
-       
-       public String getRemotserver() {
-               return remotserver;
-       }
-       public void setRemotserver(String remotserver) {
-               this.remotserver = remotserver;
-       }
-       public int getPort() {
-               return port;
-       }
-       public void setPort(int port) {
-               this.port = port;
-       }
-       public String getUsername() {
-               return username;
-       }
-       public void setUsername(String username) {
-               this.username = username;
-       }
-       public String getPassword() {
-               return password;
-       }
-       public void setPassword(String password) {
-               this.password = password;
-       }
-       public String getRemotefilename() {
-               return remotefilename;
-       }
-       public void setRemotefilename(String remotefilename) {
-               this.remotefilename = remotefilename;
-       }
-       public String getRemotefileparams() {
-               return remotefileparams;
-       }
-       public void setRemotefileparams(String remotefileparams) {
-               this.remotefileparams = remotefileparams;
-       }
-       public String getDeploymentverifier() {
-               return deploymentverifier;
-       }
-       public void setDeploymentverifier(String deploymentverifier) {
-               this.deploymentverifier = deploymentverifier;
-       }
-       public int getNoofiterations() {
-               return noofiterations;
-       }
-       public void setNoofiterations(int noofiterations) {
-               this.noofiterations = noofiterations;
-       }
-       public int getWaittime() {
-               return waittime;
-       }
-       public void setWaittime(int waittime) {
-               this.waittime = waittime;
-       }
-       
-       public String getDeploymentverifierfileparams() {
-               return deploymentverifierfileparams;
-       }
-       
-       public void setDeploymentverifierfileparams(String deploymentverifierfileparams) {
-               this.deploymentverifierfileparams = deploymentverifierfileparams;
-       }
-       
-       public String getPostverificationscript() {
-               return postverificationscript;
-       }
-       
-       public void setPostverificationscript(String postverificationscript) {
-               this.postverificationscript = postverificationscript;
-       }
-       
-       public String getPostverificationScriptparams() {
-               return postverificationScriptparams;
-       }
-       
-       
-       public void setPostverificationScriptparams(String postverificationScriptparams) {
-               this.postverificationScriptparams = postverificationScriptparams;
-       }
-       @Override
-       public String toString() {
-               return "Deploy [filepath=" + filepath + ", fileparams=" + fileparams + ", winscpfilepath=" + winscpfilepath
-                               + ", winscpfileparams=" + winscpfileparams + ", remotserver=" + remotserver + ", port=" + port
-                               + ", username=" + username + ", password=" + password + ", destdir=" + destdir + ", remotefilename="
-                               + remotefilename + ", remotefileparams=" + remotefileparams + ", deploymentverifier="
-                               + deploymentverifier + ", deploymentverifierfileparams=" + deploymentverifierfileparams
-                               + ", noofiterations=" + noofiterations + ", waittime=" + waittime + ", postverificationscript="
-                               + postverificationscript + ", postverificationScriptparams=" + postverificationScriptparams + "]";
-       }
-       
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Deploy {\r
+       \r
+       private String sitename;\r
+       private String filepath;\r
+       private String fileparams;\r
+       private String winscpfilepath;\r
+       private String winscpfileparams;\r
+       private String remotserver;\r
+       private int port;\r
+       private String username;\r
+       private String password;\r
+       private String destdir;\r
+       private String remotefilename;\r
+       private String remotefileparams;\r
+       private String deploymentverifier;\r
+       private String deploymentverifierfileparams;\r
+       int noofiterations;\r
+       int waittime;\r
+       String postverificationscript;\r
+       String postverificationScriptparams;\r
+       \r
+       \r
+       \r
+\r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+       public String getFilepath() {\r
+               return filepath;\r
+       }\r
+       public void setFilepath(String filepath) {\r
+               this.filepath = filepath;\r
+       }\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+       public String getWinscpfilepath() {\r
+               return winscpfilepath;\r
+       }\r
+       public void setWinscpfilepath(String winscpfilepath) {\r
+               this.winscpfilepath = winscpfilepath;\r
+       }\r
+       public String getWinscpfileparams() {\r
+               return winscpfileparams;\r
+       }\r
+       public void setWinscpfileparams(String winscpfileparams) {\r
+               this.winscpfileparams = winscpfileparams;\r
+       }\r
+       public String getDestdir() {\r
+               return destdir;\r
+       }\r
+       public void setDestdir(String destdir) {\r
+               this.destdir = destdir;\r
+       }\r
+       \r
+       \r
+       \r
+       public String getRemotserver() {\r
+               return remotserver;\r
+       }\r
+       public void setRemotserver(String remotserver) {\r
+               this.remotserver = remotserver;\r
+       }\r
+       public int getPort() {\r
+               return port;\r
+       }\r
+       public void setPort(int port) {\r
+               this.port = port;\r
+       }\r
+       public String getUsername() {\r
+               return username;\r
+       }\r
+       public void setUsername(String username) {\r
+               this.username = username;\r
+       }\r
+       public String getPassword() {\r
+               return password;\r
+       }\r
+       public void setPassword(String password) {\r
+               this.password = password;\r
+       }\r
+       public String getRemotefilename() {\r
+               return remotefilename;\r
+       }\r
+       public void setRemotefilename(String remotefilename) {\r
+               this.remotefilename = remotefilename;\r
+       }\r
+       public String getRemotefileparams() {\r
+               return remotefileparams;\r
+       }\r
+       public void setRemotefileparams(String remotefileparams) {\r
+               this.remotefileparams = remotefileparams;\r
+       }\r
+       public String getDeploymentverifier() {\r
+               return deploymentverifier;\r
+       }\r
+       public void setDeploymentverifier(String deploymentverifier) {\r
+               this.deploymentverifier = deploymentverifier;\r
+       }\r
+       public int getNoofiterations() {\r
+               return noofiterations;\r
+       }\r
+       public void setNoofiterations(int noofiterations) {\r
+               this.noofiterations = noofiterations;\r
+       }\r
+       public int getWaittime() {\r
+               return waittime;\r
+       }\r
+       public void setWaittime(int waittime) {\r
+               this.waittime = waittime;\r
+       }\r
+       \r
+       public String getDeploymentverifierfileparams() {\r
+               return deploymentverifierfileparams;\r
+       }\r
+       \r
+       public void setDeploymentverifierfileparams(String deploymentverifierfileparams) {\r
+               this.deploymentverifierfileparams = deploymentverifierfileparams;\r
+       }\r
+       \r
+       public String getPostverificationscript() {\r
+               return postverificationscript;\r
+       }\r
+       \r
+       public void setPostverificationscript(String postverificationscript) {\r
+               this.postverificationscript = postverificationscript;\r
+       }\r
+       \r
+       public String getPostverificationScriptparams() {\r
+               return postverificationScriptparams;\r
+       }\r
+       \r
+       \r
+       public void setPostverificationScriptparams(String postverificationScriptparams) {\r
+               this.postverificationScriptparams = postverificationScriptparams;\r
+       }\r
+       \r
+       \r
+       @Override\r
+       public String toString() {\r
+               return "Deploy [sitename=" + sitename + ", filepath=" + filepath + ", fileparams=" + fileparams\r
+                               + ", winscpfilepath=" + winscpfilepath + ", winscpfileparams=" + winscpfileparams + ", remotserver="\r
+                               + remotserver + ", port=" + port + ", username=" + username + ", password=" + password + ", destdir="\r
+                               + destdir + ", remotefilename=" + remotefilename + ", remotefileparams=" + remotefileparams\r
+                               + ", deploymentverifier=" + deploymentverifier + ", deploymentverifierfileparams="\r
+                               + deploymentverifierfileparams + ", noofiterations=" + noofiterations + ", waittime=" + waittime\r
+                               + ", postverificationscript=" + postverificationscript + ", postverificationScriptparams="\r
+                               + postverificationScriptparams + "]";\r
+       }\r
+       \r
+       \r
+       \r
+       \r
+ }\r
index e30e527..9a4b246 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Onap {
-       
-       private String remoteserver;
-       private String username;
-       private String  password;
-       private int portnumber;
-       private String srcdir;
-       private String destdir;
-       private String filename;
-       private String fileparams;
-       private String deploymentverifier;
-       private String verifierparams;
-       int noofiterations;
-       int waittime;
-       String filetrasferscript;
-       String filetransferparams;
-       
-       
-       public String getSrcdir() {
-               return srcdir;
-       }
-
-
-       public void setSrcdir(String srcdir) {
-               this.srcdir = srcdir;
-       }
-
-
-       public String getDestdir() {
-               return destdir;
-       }
-
-
-       public void setDestdir(String destdir) {
-               this.destdir = destdir;
-       }
-
-
-       public String getRemoteserver() {
-               return remoteserver;
-       }
-
-
-       public void setRemoteserver(String remoteserver) {
-               this.remoteserver = remoteserver;
-       }
-
-
-       public String getUsername() {
-               return username;
-       }
-
-
-       public void setUsername(String username) {
-               this.username = username;
-       }
-
-
-       public String getPassword() {
-               return password;
-       }
-
-
-       public void setPassword(String password) {
-               this.password = password;
-       }
-
-
-       public int getPortnumber() {
-               return portnumber;
-       }
-
-
-       public void setPortnumber(int portnumber) {
-               this.portnumber = portnumber;
-       }
-
-
-       
-
-
-       public String getFilename() {
-               return filename;
-       }
-
-
-       public void setFilename(String filename) {
-               this.filename = filename;
-       }
-
-
-       public String getFileparams() {
-               return fileparams;
-       }
-
-
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-
-
-       public String getDeploymentverifier() {
-               return deploymentverifier;
-       }
-
-
-       public void setDeploymentverifier(String deploymentverifier) {
-               this.deploymentverifier = deploymentverifier;
-       }
-
-
-       public int getNoofiterations() {
-               return noofiterations;
-       }
-
-
-       public void setNoofiterations(int noofiterations) {
-               this.noofiterations = noofiterations;
-       }
-
-
-       public int getWaittime() {
-               return waittime;
-       }
-
-
-       public void setWaittime(int waittime) {
-               this.waittime = waittime;
-       }
-
-
-       
-
-       public String getVerifierparams() {
-               return verifierparams;
-       }
-
-
-       public void setVerifierparams(String verifierparams) {
-               this.verifierparams = verifierparams;
-       }
-
-
-       public String getFiletrasferscript() {
-               return filetrasferscript;
-       }
-
-
-       public void setFiletrasferscript(String filetrasferscript) {
-               this.filetrasferscript = filetrasferscript;
-       }
-
-       
-
-       public String getFiletransferparams() {
-               return filetransferparams;
-       }
-
-
-       public void setFiletransferparams(String filetransferparams) {
-               this.filetransferparams = filetransferparams;
-       }
-
-
-       @Override
-       public String toString() {
-               return "Onap [remoteserver=" + remoteserver + ", username=" + username + ", password=" + password
-                               + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir=" + destdir + ", filename="
-                               + filename + ", fileparams=" + fileparams + ", deploymentverifier=" + deploymentverifier
-                               + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations + ", waittime=" + waittime
-                               + ", filetrasferscript=" + filetrasferscript + ", filetransferparams=" + filetransferparams + "]";
-       }
-
-
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Onap {\r
+       \r
+       private String sitename;\r
+       private String remoteserver;\r
+       private String username;\r
+       private String  password;\r
+       private int portnumber;\r
+       private String srcdir;\r
+       private String destdir;\r
+       private String filename;\r
+       private String fileparams;\r
+       private String deploymentverifier;\r
+       private String verifierparams;\r
+       int noofiterations;\r
+       int waittime;\r
+       String filetrasferscript;\r
+       String filetransferparams;\r
+       \r
+       \r
+       \r
+       \r
+       \r
+       \r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+\r
+\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+\r
+\r
+       public String getSrcdir() {\r
+               return srcdir;\r
+       }\r
+\r
+\r
+       public void setSrcdir(String srcdir) {\r
+               this.srcdir = srcdir;\r
+       }\r
+\r
+\r
+       public String getDestdir() {\r
+               return destdir;\r
+       }\r
+\r
+\r
+       public void setDestdir(String destdir) {\r
+               this.destdir = destdir;\r
+       }\r
+\r
+\r
+       public String getRemoteserver() {\r
+               return remoteserver;\r
+       }\r
+\r
+\r
+       public void setRemoteserver(String remoteserver) {\r
+               this.remoteserver = remoteserver;\r
+       }\r
+\r
+\r
+       public String getUsername() {\r
+               return username;\r
+       }\r
+\r
+\r
+       public void setUsername(String username) {\r
+               this.username = username;\r
+       }\r
+\r
+\r
+       public String getPassword() {\r
+               return password;\r
+       }\r
+\r
+\r
+       public void setPassword(String password) {\r
+               this.password = password;\r
+       }\r
+\r
+\r
+       public int getPortnumber() {\r
+               return portnumber;\r
+       }\r
+\r
+\r
+       public void setPortnumber(int portnumber) {\r
+               this.portnumber = portnumber;\r
+       }\r
+\r
+\r
+       \r
+\r
+\r
+       public String getFilename() {\r
+               return filename;\r
+       }\r
+\r
+\r
+       public void setFilename(String filename) {\r
+               this.filename = filename;\r
+       }\r
+\r
+\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+\r
+\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+\r
+\r
+       public String getDeploymentverifier() {\r
+               return deploymentverifier;\r
+       }\r
+\r
+\r
+       public void setDeploymentverifier(String deploymentverifier) {\r
+               this.deploymentverifier = deploymentverifier;\r
+       }\r
+\r
+\r
+       public int getNoofiterations() {\r
+               return noofiterations;\r
+       }\r
+\r
+\r
+       public void setNoofiterations(int noofiterations) {\r
+               this.noofiterations = noofiterations;\r
+       }\r
+\r
+\r
+       public int getWaittime() {\r
+               return waittime;\r
+       }\r
+\r
+\r
+       public void setWaittime(int waittime) {\r
+               this.waittime = waittime;\r
+       }\r
+\r
+\r
+       \r
+\r
+       public String getVerifierparams() {\r
+               return verifierparams;\r
+       }\r
+\r
+\r
+       public void setVerifierparams(String verifierparams) {\r
+               this.verifierparams = verifierparams;\r
+       }\r
+\r
+\r
+       public String getFiletrasferscript() {\r
+               return filetrasferscript;\r
+       }\r
+\r
+\r
+       public void setFiletrasferscript(String filetrasferscript) {\r
+               this.filetrasferscript = filetrasferscript;\r
+       }\r
+\r
+       \r
+\r
+       public String getFiletransferparams() {\r
+               return filetransferparams;\r
+       }\r
+\r
+\r
+       public void setFiletransferparams(String filetransferparams) {\r
+               this.filetransferparams = filetransferparams;\r
+       }\r
+\r
+\r
+       @Override\r
+       public String toString() {\r
+               return "Onap [sitename=" + sitename + ", remoteserver=" + remoteserver + ", username=" + username\r
+                               + ", password=" + password + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir="\r
+                               + destdir + ", filename=" + filename + ", fileparams=" + fileparams + ", deploymentverifier="\r
+                               + deploymentverifier + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations\r
+                               + ", waittime=" + waittime + ", filetrasferscript=" + filetrasferscript + ", filetransferparams="\r
+                               + filetransferparams + "]";\r
+       }\r
+\r
+\r
+\r
+ }\r
index 2010cd3..7f180c2 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.model;
-
-public class Tempest {
-       
-       private String remoteserver;
-       private String username;
-       private String  password;
-       private int portnumber;
-       private String srcdir;
-       private String destdir;
-       private String filename;
-       private String fileparams;
-       private String deploymentverifier;
-       private String verifierparams;
-       int noofiterations;
-       int waittime;
-       String filetrasferscript;
-       String filetransferparams;
-       
-       
-       public String getSrcdir() {
-               return srcdir;
-       }
-
-
-       public void setSrcdir(String srcdir) {
-               this.srcdir = srcdir;
-       }
-
-
-       public String getDestdir() {
-               return destdir;
-       }
-
-
-       public void setDestdir(String destdir) {
-               this.destdir = destdir;
-       }
-
-
-       public String getRemoteserver() {
-               return remoteserver;
-       }
-
-
-       public void setRemoteserver(String remoteserver) {
-               this.remoteserver = remoteserver;
-       }
-
-
-       public String getUsername() {
-               return username;
-       }
-
-
-       public void setUsername(String username) {
-               this.username = username;
-       }
-
-
-       public String getPassword() {
-               return password;
-       }
-
-
-       public void setPassword(String password) {
-               this.password = password;
-       }
-
-
-       public int getPortnumber() {
-               return portnumber;
-       }
-
-
-       public void setPortnumber(int portnumber) {
-               this.portnumber = portnumber;
-       }
-
-
-       
-
-
-       public String getFilename() {
-               return filename;
-       }
-
-
-       public void setFilename(String filename) {
-               this.filename = filename;
-       }
-
-
-       public String getFileparams() {
-               return fileparams;
-       }
-
-
-       public void setFileparams(String fileparams) {
-               this.fileparams = fileparams;
-       }
-
-
-       public String getDeploymentverifier() {
-               return deploymentverifier;
-       }
-
-
-       public void setDeploymentverifier(String deploymentverifier) {
-               this.deploymentverifier = deploymentverifier;
-       }
-
-
-       public int getNoofiterations() {
-               return noofiterations;
-       }
-
-
-       public void setNoofiterations(int noofiterations) {
-               this.noofiterations = noofiterations;
-       }
-
-
-       public int getWaittime() {
-               return waittime;
-       }
-
-
-       public void setWaittime(int waittime) {
-               this.waittime = waittime;
-       }
-
-
-       
-
-       public String getVerifierparams() {
-               return verifierparams;
-       }
-
-
-       public void setVerifierparams(String verifierparams) {
-               this.verifierparams = verifierparams;
-       }
-
-
-       public String getFiletrasferscript() {
-               return filetrasferscript;
-       }
-
-
-       public void setFiletrasferscript(String filetrasferscript) {
-               this.filetrasferscript = filetrasferscript;
-       }
-
-       
-       
-
-       public String getFiletransferparams() {
-               return filetransferparams;
-       }
-
-
-       public void setFiletransferparams(String filetransferparams) {
-               this.filetransferparams = filetransferparams;
-       }
-
-
-       @Override
-       public String toString() {
-               return "Tempest [remoteserver=" + remoteserver + ", username=" + username + ", password=" + password
-                               + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir=" + destdir + ", filename="
-                               + filename + ", fileparams=" + fileparams + ", deploymentverifier=" + deploymentverifier
-                               + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations + ", waittime=" + waittime
-                               + ", filetrasferscript=" + filetrasferscript + ", filetransferparams=" + filetransferparams + "]";
-       }
-
-
-
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.model;\r
+\r
+public class Tempest {\r
+       \r
+       private String sitename;\r
+       private String remoteserver;\r
+       private String username;\r
+       private String  password;\r
+       private int portnumber;\r
+       private String srcdir;\r
+       private String destdir;\r
+       private String filename;\r
+       private String fileparams;\r
+       private String deploymentverifier;\r
+       private String verifierparams;\r
+       int noofiterations;\r
+       int waittime;\r
+       String filetrasferscript;\r
+       String filetransferparams;\r
+       \r
+       \r
+       \r
+       \r
+       \r
+       public String getSitename() {\r
+               return sitename;\r
+       }\r
+\r
+\r
+       public void setSitename(String sitename) {\r
+               this.sitename = sitename;\r
+       }\r
+\r
+\r
+       public String getSrcdir() {\r
+               return srcdir;\r
+       }\r
+\r
+\r
+       public void setSrcdir(String srcdir) {\r
+               this.srcdir = srcdir;\r
+       }\r
+\r
+\r
+       public String getDestdir() {\r
+               return destdir;\r
+       }\r
+\r
+\r
+       public void setDestdir(String destdir) {\r
+               this.destdir = destdir;\r
+       }\r
+\r
+\r
+       public String getRemoteserver() {\r
+               return remoteserver;\r
+       }\r
+\r
+\r
+       public void setRemoteserver(String remoteserver) {\r
+               this.remoteserver = remoteserver;\r
+       }\r
+\r
+\r
+       public String getUsername() {\r
+               return username;\r
+       }\r
+\r
+\r
+       public void setUsername(String username) {\r
+               this.username = username;\r
+       }\r
+\r
+\r
+       public String getPassword() {\r
+               return password;\r
+       }\r
+\r
+\r
+       public void setPassword(String password) {\r
+               this.password = password;\r
+       }\r
+\r
+\r
+       public int getPortnumber() {\r
+               return portnumber;\r
+       }\r
+\r
+\r
+       public void setPortnumber(int portnumber) {\r
+               this.portnumber = portnumber;\r
+       }\r
+\r
+\r
+       \r
+\r
+\r
+       public String getFilename() {\r
+               return filename;\r
+       }\r
+\r
+\r
+       public void setFilename(String filename) {\r
+               this.filename = filename;\r
+       }\r
+\r
+\r
+       public String getFileparams() {\r
+               return fileparams;\r
+       }\r
+\r
+\r
+       public void setFileparams(String fileparams) {\r
+               this.fileparams = fileparams;\r
+       }\r
+\r
+\r
+       public String getDeploymentverifier() {\r
+               return deploymentverifier;\r
+       }\r
+\r
+\r
+       public void setDeploymentverifier(String deploymentverifier) {\r
+               this.deploymentverifier = deploymentverifier;\r
+       }\r
+\r
+\r
+       public int getNoofiterations() {\r
+               return noofiterations;\r
+       }\r
+\r
+\r
+       public void setNoofiterations(int noofiterations) {\r
+               this.noofiterations = noofiterations;\r
+       }\r
+\r
+\r
+       public int getWaittime() {\r
+               return waittime;\r
+       }\r
+\r
+\r
+       public void setWaittime(int waittime) {\r
+               this.waittime = waittime;\r
+       }\r
+\r
+\r
+       \r
+\r
+       public String getVerifierparams() {\r
+               return verifierparams;\r
+       }\r
+\r
+\r
+       public void setVerifierparams(String verifierparams) {\r
+               this.verifierparams = verifierparams;\r
+       }\r
+\r
+\r
+       public String getFiletrasferscript() {\r
+               return filetrasferscript;\r
+       }\r
+\r
+\r
+       public void setFiletrasferscript(String filetrasferscript) {\r
+               this.filetrasferscript = filetrasferscript;\r
+       }\r
+\r
+       \r
+       \r
+\r
+       public String getFiletransferparams() {\r
+               return filetransferparams;\r
+       }\r
+\r
+\r
+       public void setFiletransferparams(String filetransferparams) {\r
+               this.filetransferparams = filetransferparams;\r
+       }\r
+\r
+\r
+       @Override\r
+       public String toString() {\r
+               return "Tempest [sitename=" + sitename + ", remoteserver=" + remoteserver + ", username=" + username\r
+                               + ", password=" + password + ", portnumber=" + portnumber + ", srcdir=" + srcdir + ", destdir="\r
+                               + destdir + ", filename=" + filename + ", fileparams=" + fileparams + ", deploymentverifier="\r
+                               + deploymentverifier + ", verifierparams=" + verifierparams + ", noofiterations=" + noofiterations\r
+                               + ", waittime=" + waittime + ", filetrasferscript=" + filetrasferscript + ", filetransferparams="\r
+                               + filetransferparams + "]";\r
+       }\r
+\r
+\r
+\r
+\r
+ }\r
diff --git a/akraino/src/main/java/com/akraino/bpm/service/AsyncProcessExecutorService.java b/akraino/src/main/java/com/akraino/bpm/service/AsyncProcessExecutorService.java
new file mode 100644 (file)
index 0000000..bee88d9
--- /dev/null
@@ -0,0 +1,39 @@
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service;\r
+\r
+import com.akraino.bpm.model.Airship;\r
+import com.akraino.bpm.model.Apache;\r
+import com.akraino.bpm.model.Build;\r
+import com.akraino.bpm.model.Deploy;\r
+import com.akraino.bpm.model.Onap;\r
+import com.akraino.bpm.model.Tempest;\r
+\r
+public interface AsyncProcessExecutorService {\r
+       \r
+       public void executeAirshipProcess(Airship airship);\r
+       \r
+       public void executeBuildProcess(Build build);\r
+       \r
+       public void executeDeployProcess(Deploy deploy);\r
+       \r
+       public void executeOnapProcess(Onap onap);\r
+       \r
+       public void executeTempestProcess(Tempest tempest);\r
+       \r
+       public void executeApacheProcess(Apache apache);\r
+}\r
diff --git a/akraino/src/main/java/com/akraino/bpm/service/impl/AsyncProcessExecutorServiceImpl.java b/akraino/src/main/java/com/akraino/bpm/service/impl/AsyncProcessExecutorServiceImpl.java
new file mode 100644 (file)
index 0000000..73dd05b
--- /dev/null
@@ -0,0 +1,228 @@
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import org.camunda.bpm.engine.ProcessEngine;\r
+import org.camunda.bpm.engine.runtime.ProcessInstance;\r
+import org.camunda.bpm.engine.variable.Variables;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.scheduling.annotation.Async;\r
+import org.springframework.stereotype.Service;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.model.Airship;\r
+import com.akraino.bpm.model.Apache;\r
+import com.akraino.bpm.model.Build;\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.model.Deploy;\r
+import com.akraino.bpm.model.Onap;\r
+import com.akraino.bpm.model.Tempest;\r
+import com.akraino.bpm.service.AsyncProcessExecutorService;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+\r
+@Service("asyncProcessExecutorService")\r
+public class AsyncProcessExecutorServiceImpl implements AsyncProcessExecutorService{\r
+\r
+         @Autowired\r
+         private ProcessEngine camunda;\r
+         \r
+         @Autowired \r
+         private DeployResponseSenderService  deployResponseSenderService;\r
+         \r
+         private static Logger logger = LoggerFactory.getLogger(AsyncProcessExecutorServiceImpl.class);\r
+         \r
+       @Async\r
+       public void executeAirshipProcess(Airship airship) {\r
+               \r
+                try {\r
+                       executeAirshipservice(airship);\r
+                 }catch(TaskExecutorException ex) {\r
+                         logger.error("Airship execution failed ",ex);\r
+                         deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,"exception: "+ex.getMessage(),airship.getSitename(),null,null,null));\r
+               }\r
+                logger.error("Airship execution sucess ");\r
+                deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,"success",airship.getSitename(),null,null,null));\r
+               \r
+               \r
+               \r
+       }\r
+\r
+       private ProcessInstance executeAirshipservice(Airship airship) {\r
+               \r
+               String filepath1=airship.getFilepath()+"  "+(airship.getFileparams()!=null?airship.getFileparams().replaceAll(",", "  "):" ");\r
+               String filepath2=airship.getWinscpfilepath()+"  "+(airship.getWinscpfileparams()!=null?airship.getWinscpfileparams().replaceAll(",", "  "):" ");\r
+               return camunda.getRuntimeService().startProcessInstanceByKey("airship",\r
+                               Variables.putValue("filepath", filepath1).putValue("scpdir", airship.getWinscpdir()).putValue("ScpScriptFilepath", filepath2).putValue("remotserver", airship.getRemotserver())\r
+                               .putValue("username", airship.getUsername())\r
+                               .putValue("password", airship.getPassword())\r
+                               .putValue("port", airship.getPort()).putValue("destdir",airship.getDestdir()).putValue("remotefilename", airship.getRemotefilename())\r
+                               .putValue("remotefileparams", airship.getRemotefileparams()).putValue("sitename", airship.getSitename()));\r
+               \r
+       }\r
+\r
+       @Async\r
+       public void executeBuildProcess(Build build) {\r
+               \r
+                try {\r
+                       executeBuildService(build);\r
+                 }catch(TaskExecutorException ex) {\r
+                         logger.error("Build execution failed ",ex);\r
+                         deployResponseSenderService.sendResponse(new BuildResponse("exception: "+ex.getMessage(),null,null,null,null,build.getSitename(),null,null,null));\r
+               }\r
+                logger.error("Build execution sucess ");\r
+                deployResponseSenderService.sendResponse(new BuildResponse("success",null,null,null,null,build.getSitename(),null,null,null));\r
+       }\r
+\r
+       \r
+       private ProcessInstance executeBuildService(Build build) {\r
+               \r
+               String filepath=build.getFilepath()+"  "+(build.getFileparams()!=null?build.getFileparams().replaceAll(",", "  "):" ");\r
+               return camunda.getRuntimeService().startProcessInstanceByKey("build",\r
+                               Variables.putValue("filepath", filepath).putValue("targetfolder", build.getTargetfolder()));\r
+       }\r
+       \r
+       @Async\r
+       public void executeDeployProcess(Deploy deploy) {\r
+               \r
+                try {\r
+                        executeDeployService(deploy);\r
+                 }catch(TaskExecutorException ex) {\r
+                         logger.error("deploy execution failed ",ex);\r
+                         deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,"exception: "+ex.getMessage(),deploy.getSitename(),null,null,null));\r
+               }\r
+                logger.debug("deploy execution sucess ");\r
+                deployResponseSenderService.sendResponse(new BuildResponse("success","success","success","success","success",deploy.getSitename(),null,null,null));\r
+       }\r
+       \r
+       \r
+       private ProcessInstance executeDeployService(Deploy deploy) {\r
+               \r
+               String filepath1=deploy.getFilepath()+"  "+(deploy.getFileparams()!=null?deploy.getFileparams().replaceAll(",", "  "):" ");\r
+               String filepath2=deploy.getWinscpfilepath()+"  "+(deploy.getWinscpfileparams()!=null?deploy.getWinscpfileparams().replaceAll(",", "  "):" ");\r
+               return camunda.getRuntimeService().startProcessInstanceByKey("deploy",\r
+                               Variables.putValue("filepath", filepath1).putValue("ScpScriptFilepath", filepath2).putValue("remotserver", deploy.getRemotserver())\r
+                               .putValue("username", deploy.getUsername())\r
+                               .putValue("password", deploy.getPassword())\r
+                               .putValue("port", deploy.getPort()).putValue("destdir",deploy.getDestdir()).putValue("remotefilename", deploy.getRemotefilename())\r
+                               .putValue("fileparams", deploy.getFileparams()).\r
+                               putValue("verifier", deploy.getDeploymentverifier()).putValue("verifierfileparams", \r
+                               deploy.getDeploymentverifierfileparams()).putValue("waittime", deploy.getWaittime()).\r
+                               putValue("iterations", deploy.getNoofiterations()).putValue("postverificationscript", deploy.getPostverificationscript()).\r
+                               putValue("postverificationScriptparams", deploy.getDeploymentverifierfileparams()).putValue("sitename", deploy.getSitename()));\r
+               \r
+       }\r
+\r
+       @Async\r
+       public void executeOnapProcess(Onap onap) {\r
+               \r
+               try {\r
+                       executeOnapService(onap);\r
+                 }catch(TaskExecutorException ex) {\r
+                         logger.error("Onap execution failed ",ex);\r
+                         deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,onap.getSitename(),"exception: "+ex.getMessage(),null,null));\r
+               }\r
+                logger.error("Onap execution sucess ");\r
+                deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,onap.getSitename(),"succes",null,null));\r
+               \r
+               \r
+       }\r
+       \r
+       \r
+       private ProcessInstance executeOnapService(Onap onap) {\r
+               \r
+               String transferfile= onap.getFiletrasferscript()+"  "+(onap.getFiletransferparams()!=null?onap.getFiletransferparams().replaceAll(",", "  "):" ");\r
+               return camunda.getRuntimeService().startProcessInstanceByKey("onap",\r
+                               Variables.putValue("filename", onap.getFilename()).putValue("fileparams", onap.getFileparams()).\r
+                               putValue("verifier", onap.getDeploymentverifier()).putValue("verifierfileparams", onap.getVerifierparams()).putValue("waittime", onap.getWaittime()).\r
+                               putValue("iterations", onap.getNoofiterations()).putValue("remotserver", onap.getRemoteserver())\r
+                               .putValue("username", onap.getUsername())\r
+                               .putValue("password", onap.getPassword())\r
+                               .putValue("port", onap.getPortnumber()).putValue("srcdir", onap.getSrcdir()).putValue("destdir",onap.getDestdir()).putValue("filepath", transferfile)\r
+                               );\r
+               \r
+       }\r
+       \r
+       \r
+       @Async\r
+       public void executeTempestProcess(Tempest tempest) {\r
+                try {\r
+                       executeTempestService(tempest);\r
+                 }catch(TaskExecutorException ex) {\r
+                         logger.error("Tempest execution failed ",ex);\r
+                         deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,tempest.getSitename(),null,null,"exception: "+ex.getMessage()));\r
+               }\r
+                logger.error("Tempest execution sucess ");\r
+                deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,tempest.getSitename(),null,null,"success"));\r
+               \r
+       }\r
+       \r
+               private ProcessInstance executeTempestService(Tempest tempest) {\r
+               \r
+               \r
+                       String transferfile= tempest.getFiletrasferscript()+"  "+(tempest.getFiletransferparams()!=null?tempest.getFiletransferparams().replaceAll(",", "  "):" ");\r
+               \r
+                       return camunda.getRuntimeService().startProcessInstanceByKey("tempest",\r
+                               Variables.putValue("filename", tempest.getFilename()).putValue("fileparams", tempest.getFileparams()).\r
+                               putValue("verifier", tempest.getDeploymentverifier()).putValue("verifierfileparams", tempest.getVerifierparams()).putValue("waittime", tempest.getWaittime()).\r
+                               putValue("iterations", tempest.getNoofiterations()).putValue("remotserver", tempest.getRemoteserver())\r
+                               .putValue("username", tempest.getUsername())\r
+                               .putValue("password", tempest.getPassword())\r
+                               .putValue("port", tempest.getPortnumber()).putValue("srcdir", tempest.getSrcdir()).putValue("destdir",tempest.getDestdir()).putValue("filepath", transferfile)\r
+                               );\r
+               \r
+               }\r
+       \r
+       \r
+               @Async\r
+               public void executeApacheProcess(Apache apache) {\r
+                        try {\r
+                                executeApacheService(apache);\r
+                         }catch(TaskExecutorException ex) {\r
+                                 logger.error("Apache execution failed ",ex);\r
+                                 deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,apache.getSitename(),null,"exception: "+ex.getMessage(),null));\r
+                       }\r
+                        logger.error("Apache execution sucess ");\r
+                        deployResponseSenderService.sendResponse(new BuildResponse(null,null,null,null,null,apache.getSitename(),null,"success",null));\r
+                       \r
+                       \r
+               }\r
+               \r
+               \r
+               private ProcessInstance executeApacheService(Apache apache) {\r
+                       \r
+                       String transferfile= apache.getFiletrasferscript()+"  "+(apache.getFiletransferparams()!=null?apache.getFiletransferparams().replaceAll(",", "  "):" ");\r
+                       \r
+                       return camunda.getRuntimeService().startProcessInstanceByKey("apache",\r
+                                       Variables.putValue("filename", apache.getFilename()).putValue("fileparams", apache.getFileparams()).\r
+                                       putValue("verifier", apache.getDeploymentverifier()).putValue("verifierfileparams", apache.getVerifierparams()).putValue("waittime", apache.getWaittime()).\r
+                                       putValue("iterations", apache.getNoofiterations()).putValue("remotserver", apache.getRemoteserver())\r
+                                       .putValue("username", apache.getUsername())\r
+                                       .putValue("password", apache.getPassword())\r
+                                       .putValue("port", apache.getPortnumber()).putValue("srcdir", apache.getSrcdir()).putValue("destdir",apache.getDestdir()).putValue("filepath", transferfile)\r
+                                       );\r
+                       \r
+               }\r
+               \r
+               \r
+               \r
+       \r
+       \r
+       \r
+       \r
+}\r
index 842274b..939331a 100644 (file)
@@ -1,60 +1,63 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.service.impl;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpEntity;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.ResponseEntity;
-import org.springframework.stereotype.Service;
-import org.springframework.web.client.RestTemplate;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.config.CamundaCorsFilter;
-import com.akraino.bpm.model.BuildResponse;
-import com.akraino.bpm.service.DeployResponseSenderService;
-
-@Service("deployResponseSenderService")
-public class DeployResponseSenderServiceImpl implements DeployResponseSenderService {
-       
-       private static Logger logger = LoggerFactory.getLogger(DeployResponseSenderServiceImpl.class);
-
-       @Autowired
-       private RestTemplate  restTemplate; 
-       
-       @Autowired 
-       private CamundaCorsFilter camundaCorsFilter;
-       
-       public void sendResponse(BuildResponse response) {
-               try {
-                       logger.debug(response.toString());
-                       HttpEntity<BuildResponse> request = new HttpEntity<BuildResponse>(response);    
-                       ResponseEntity<Void> httpresposne       =restTemplate
-                                       .exchange(camundaCorsFilter.getBuildresponseurl(), HttpMethod.POST, request, Void.class);
-               
-                       logger.debug("Build response HttpResponseStatus :"+httpresposne.getStatusCodeValue());
-               }catch (Exception e ) {
-                       logger.error("problem while sending  deploy response :"+e.getMessage());
-                       
-                       throw new TaskExecutorException("problem while sending  deploy response :"+e.getMessage());
-                       
-               }
-       }
-       
- }
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.beans.factory.annotation.Autowired;\r
+import org.springframework.http.HttpEntity;\r
+import org.springframework.http.HttpHeaders;\r
+import org.springframework.http.HttpMethod;\r
+import org.springframework.http.ResponseEntity;\r
+import org.springframework.stereotype.Service;\r
+import org.springframework.web.client.RestTemplate;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.config.CamundaCorsFilter;\r
+import com.akraino.bpm.model.BuildResponse;\r
+import com.akraino.bpm.service.DeployResponseSenderService;\r
+\r
+@Service("deployResponseSenderService")\r
+public class DeployResponseSenderServiceImpl implements DeployResponseSenderService {\r
+       \r
+       private static Logger logger = LoggerFactory.getLogger(DeployResponseSenderServiceImpl.class);\r
+\r
+       @Autowired\r
+       private RestTemplate  restTemplate; \r
+       \r
+       @Autowired \r
+       private CamundaCorsFilter camundaCorsFilter;\r
+       \r
+       public void sendResponse(BuildResponse response) {\r
+               try {\r
+                       logger.debug(response.toString());\r
+                       HttpHeaders header = new HttpHeaders();\r
+                       header.add("tokenId", camundaCorsFilter.getTokenId());\r
+                       HttpEntity<BuildResponse> request = new HttpEntity<BuildResponse>(response,header);     \r
+                       ResponseEntity<Void> httpresposne       =restTemplate\r
+                                       .exchange(camundaCorsFilter.getBuildresponseurl(), HttpMethod.POST, request, Void.class);\r
+               \r
+                       logger.debug("Build response HttpResponseStatus :"+httpresposne.getStatusCodeValue());\r
+               }catch (Exception e ) {\r
+                       logger.error("problem while sending response :"+e.getMessage());\r
+                       \r
+                       throw new TaskExecutorException("problem while sending response :"+e.getMessage());\r
+                       \r
+               }\r
+       }\r
+       \r
+}\r
index d8b158c..2754af2 100644 (file)
@@ -1,93 +1,93 @@
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.service.impl;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Service;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.service.FileTransferService;
-import com.jcraft.jsch.ChannelSftp;
-import com.jcraft.jsch.JSch;
-import com.jcraft.jsch.Session;
-
-@Service("fileTransferService")
-public class FileTransferServiceImpl implements FileTransferService {
-       
-       private static Logger logger = LoggerFactory.getLogger(FileTransferServiceImpl.class);
-
-       public void transferFile(String srcdir, String destdir, String filename,String servername,String username,String password,int port) {
-               
-                logger.debug("file transfor filename={},srcdir={},destdir={}",filename,srcdir,destdir);
-                ChannelSftp sftpChannel=null;
-               try {
-                       JSch jsch = new JSch();
-                               Session session = jsch.getSession(username, servername, port);
-                               session.setConfig("StrictHostKeyChecking", "no");
-                               session.setPassword(password);
-                               session.connect();
-                               sftpChannel = (ChannelSftp)session.openChannel("sftp");
-                               sftpChannel.setPty(true);
-                               sftpChannel.connect();
-                               sftpChannel.cd(destdir);
-                               sftpChannel.put(new FileInputStream(new File (srcdir+"/"+filename)), filename);
-                               sftpChannel.chmod(Integer.parseInt("777", 8),filename);
-                       } catch (Exception e) {
-                       logger.error("Exception occured while ftp : "+e);
-                       throw new TaskExecutorException("problem while transfering the file to remote machine :"+e.getMessage());
-               } finally {
-                       sftpChannel.disconnect();
-               }
-       }
-       
-
-       public void transferFile(String srcdir, String destdir,String servername,String username,String password,int port) {
-               
-               List<File> files=getAllfiles(new File(srcdir));
-               for(File file: files) {
-                       transferFile(srcdir,destdir,file.getName(),servername,username,password,port);
-               }
-               
-               
-       }
-       
-       private List<File> getAllfiles(File rootDirectory){
-           List<File> results = new ArrayList<File>();
-           
-           if(rootDirectory==null) {
-               throw new TaskExecutorException("problem while transfering the file to remote machine : src diectory Not found");
-           }
-           
-           for(File currentItem : rootDirectory.listFiles()){
-             if(currentItem.isDirectory()){
-                 results.addAll(getAllfiles(currentItem));
-             }
-             else{
-                 results.add(currentItem);
-             }
-           }
-           return results;
-       }
-       
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import java.io.File;\r
+import java.io.FileInputStream;\r
+import java.util.ArrayList;\r
+import java.util.List;\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.stereotype.Service;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.service.FileTransferService;\r
+import com.jcraft.jsch.ChannelSftp;\r
+import com.jcraft.jsch.JSch;\r
+import com.jcraft.jsch.Session;\r
+\r
+@Service("fileTransferService")\r
+public class FileTransferServiceImpl implements FileTransferService {\r
+       \r
+       private static Logger logger = LoggerFactory.getLogger(FileTransferServiceImpl.class);\r
+\r
+       public void transferFile(String srcdir, String destdir, String filename,String servername,String username,String password,int port) {\r
+               \r
+                logger.debug("file transfor filename={},srcdir={},destdir={}",filename,srcdir,destdir);\r
+                ChannelSftp sftpChannel=null;\r
+               try {\r
+                       JSch jsch = new JSch();\r
+                               Session session = jsch.getSession(username, servername, port);\r
+                               session.setConfig("StrictHostKeyChecking", "no");\r
+                               session.setPassword(password);\r
+                               session.connect();\r
+                               sftpChannel = (ChannelSftp)session.openChannel("sftp");\r
+                               sftpChannel.setPty(true);\r
+                               sftpChannel.connect();\r
+                               sftpChannel.cd(destdir);\r
+                               sftpChannel.put(new FileInputStream(new File (srcdir+"/"+filename)), filename);\r
+                               sftpChannel.chmod(Integer.parseInt("777", 8),filename);\r
+                       } catch (Exception e) {\r
+                       logger.error("Exception occured while ftp : "+e);\r
+                       throw new TaskExecutorException("problem while transfering the file to remote machine :"+e.getMessage());\r
+               } finally {\r
+                       sftpChannel.disconnect();\r
+               }\r
+       }\r
+       \r
+\r
+       public void transferFile(String srcdir, String destdir,String servername,String username,String password,int port) {\r
+               \r
+               List<File> files=getAllfiles(new File(srcdir));\r
+               for(File file: files) {\r
+                       transferFile(srcdir,destdir,file.getName(),servername,username,password,port);\r
+               }\r
+               \r
+               \r
+       }\r
+       \r
+       private List<File> getAllfiles(File rootDirectory){\r
+           List<File> results = new ArrayList<File>();\r
+           \r
+           if(rootDirectory==null) {\r
+               throw new TaskExecutorException("problem while transfering the file to remote machine : src diectory Not found");\r
+           }\r
+           \r
+           for(File currentItem : rootDirectory.listFiles()){\r
+             if(currentItem.isDirectory()){\r
+                 results.addAll(getAllfiles(currentItem));\r
+             }\r
+             else{\r
+                 results.add(currentItem);\r
+             }\r
+           }\r
+           return results;\r
+       }\r
+       \r
+\r
+}\r
index b3335e7..865e768 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.service.impl;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Service;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.service.RemoteDeploymentVerificationService;
-import com.jcraft.jsch.ChannelExec;
-import com.jcraft.jsch.JSch;
-import com.jcraft.jsch.Session;
-
-
-@Service("remoteDeploymentVerificationService")
-public class RemoteDeploymentverificationServiceImpl implements RemoteDeploymentVerificationService{
-
-       private static Logger logger = LoggerFactory.getLogger(RemoteDeploymentverificationServiceImpl.class);
-       
-       public void executeScript(String remoteserver,String username,String password,int portnumber,
-                       String filename,String fileparams,String srcdir,String destdir,int waitttime,int iterations,String command)  {
-               
-               boolean issuccess=false;
-               //String filepath=destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");
-               ChannelExec channelExec=null;
-               BufferedReader reader =null;
-               Session session=null;
-               for( int i=0;i<=iterations;i++) {
-                       try {
-                               logger.debug("Executing the deployment verification script.............iteration : {}",i);
-                               Thread.sleep(waitttime*1000);
-                               JSch jsch = new JSch();
-                               session = jsch.getSession(username, remoteserver, portnumber);
-                               session.setConfig("StrictHostKeyChecking", "no");
-                               session.setPassword(password);
-                               session.connect();
-                               channelExec = (ChannelExec)session.openChannel("exec");
-                               InputStream in = channelExec.getInputStream();
-                               channelExec.setPty(true);
-                               channelExec.setCommand(command);
-                               channelExec.connect();
-                               reader = new BufferedReader(new InputStreamReader(in));
-                               String line;
-                               logger.debug("Script output......................");
-                               while ((line = reader.readLine()) != null){
-                                        logger.debug(line);
-                               }
-                               channelExec.disconnect();
-                       while (!channelExec.isClosed()) {
-
-                       }
-                       int exitStatus = channelExec.getExitStatus();
-                       logger.debug("Script exit code :"+exitStatus);
-                   if(exitStatus==0) {
-                       issuccess=true;
-                   }
-                   }
-                       catch (IOException e) {
-                                       throw new TaskExecutorException(filename + " not found.");
-                       } catch (Exception e) {
-                                       throw new TaskExecutorException("problem while executing the script "+command);
-                       }finally{
-                               if(reader!=null) {
-                                       try {
-                                               reader.close();
-                                       }catch(Exception e) {
-                                               throw new TaskExecutorException("onap build failed");
-                                       }
-                               }
-                               if(session!=null) {
-                                       session.disconnect();
-                               }
-                       }
-                       
-                       if(issuccess) {
-                               break;
-                       }
-                       
-               }
-               
-                if(!issuccess) {
-               logger.debug("verification script returned 1 ");
-               throw new TaskExecutorException(" verification script exit code : 1");
-         }
-       }
-       
-       
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import java.io.BufferedReader;\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+import java.io.InputStreamReader;\r
+\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.stereotype.Service;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.service.RemoteDeploymentVerificationService;\r
+import com.jcraft.jsch.ChannelExec;\r
+import com.jcraft.jsch.JSch;\r
+import com.jcraft.jsch.Session;\r
+\r
+\r
+@Service("remoteDeploymentVerificationService")\r
+public class RemoteDeploymentverificationServiceImpl implements RemoteDeploymentVerificationService{\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(RemoteDeploymentverificationServiceImpl.class);\r
+       \r
+       public void executeScript(String remoteserver,String username,String password,int portnumber,\r
+                       String filename,String fileparams,String srcdir,String destdir,int waitttime,int iterations,String command)  {\r
+               \r
+               boolean issuccess=false;\r
+               //String filepath=destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");\r
+               ChannelExec channelExec=null;\r
+               BufferedReader reader =null;\r
+               Session session=null;\r
+               for( int i=0;i<=iterations;i++) {\r
+                       try {\r
+                               logger.debug("Executing the deployment verification script.............iteration : {}",i);\r
+                               Thread.sleep(waitttime*1000);\r
+                               JSch jsch = new JSch();\r
+                               session = jsch.getSession(username, remoteserver, portnumber);\r
+                               session.setConfig("StrictHostKeyChecking", "no");\r
+                               session.setPassword(password);\r
+                               session.connect();\r
+                               channelExec = (ChannelExec)session.openChannel("exec");\r
+                               InputStream in = channelExec.getInputStream();\r
+                               channelExec.setPty(true);\r
+                               channelExec.setCommand(command);\r
+                               channelExec.connect();\r
+                               reader = new BufferedReader(new InputStreamReader(in));\r
+                               String line;\r
+                               logger.debug("Script output......................");\r
+                               while ((line = reader.readLine()) != null){\r
+                                        logger.debug(line);\r
+                               }\r
+                               channelExec.disconnect();\r
+                       while (!channelExec.isClosed()) {\r
+\r
+                       }\r
+                       int exitStatus = channelExec.getExitStatus();\r
+                       logger.debug("Script exit code :"+exitStatus);\r
+                   if(exitStatus==0) {\r
+                       issuccess=true;\r
+                   }\r
+                   }\r
+                       catch (IOException e) {\r
+                                       throw new TaskExecutorException(filename + " not found.");\r
+                       } catch (Exception e) {\r
+                                       throw new TaskExecutorException("problem while executing the script "+command);\r
+                       }finally{\r
+                               if(reader!=null) {\r
+                                       try {\r
+                                               reader.close();\r
+                                       }catch(Exception e) {\r
+                                               throw new TaskExecutorException("onap build failed");\r
+                                       }\r
+                               }\r
+                               if(session!=null) {\r
+                                       session.disconnect();\r
+                               }\r
+                       }\r
+                       \r
+                       if(issuccess) {\r
+                               break;\r
+                       }\r
+                       \r
+               }\r
+               \r
+                if(!issuccess) {\r
+               logger.debug("verification script returned 1 ");\r
+               throw new TaskExecutorException(" verification script exit code : 1");\r
+         }\r
+       }\r
+       \r
+       \r
+\r
+}\r
index 0a05f9f..b25e12e 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.service.impl;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Service;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.service.RemoteScriptExecutionService;
-import com.jcraft.jsch.ChannelExec;
-import com.jcraft.jsch.JSch;
-import com.jcraft.jsch.Session;
-
-@Service("remoteScriptExecutionService")
-public class RemoteScriptExecutionServiceImpl implements RemoteScriptExecutionService{
-
-       private static Logger logger = LoggerFactory.getLogger(RemoteScriptExecutionServiceImpl.class);
-       
-       public void executeRemoteScript(String remoteserver,String username,String password,int portnumber,String filename,
-                       String fileparams,String srcdir,String destdir,String command)  {
-               
-               //String filepath=destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");
-               ChannelExec channelExec=null;
-               Session session=null;
-               BufferedReader reader =null;
-               try {
-                       //tranferFile(remoteserver,portnumber,username,password,filename,srcdir,destdir);
-                       logger.debug("executing the script  "+command);
-                       JSch jsch = new JSch();
-                       session = jsch.getSession(username, remoteserver, portnumber);
-                       session.setConfig("StrictHostKeyChecking", "no");
-                       session.setPassword(password);
-                       session.connect();
-                       channelExec = (ChannelExec)session.openChannel("exec");
-                       InputStream in = channelExec.getInputStream();
-                       channelExec.setCommand(command);
-                       channelExec.setPty(true);
-                       channelExec.connect();
-                       reader = new BufferedReader(new InputStreamReader(in));
-                       String line;
-                       logger.debug("Script output......................");
-                       while ((line = reader.readLine()) != null){
-                                logger.debug(line);
-                       }
-                       
-                       channelExec.disconnect();
-               while (!channelExec.isClosed()) {
-
-               }
-
-                       int exitStatus = channelExec.getExitStatus();
-                       
-            logger.debug("Script exit code :"+exitStatus);
-            if(exitStatus!=0) {
-               throw new TaskExecutorException("problem while executing the script . exist code :"+exitStatus);
-            }
-            
-                       
-               } catch (IOException e) {
-                       throw new TaskExecutorException(filename + " not found.");
-               } catch (Exception e) {
-                       throw new TaskExecutorException("Problem while executing script"+e.getMessage());
-               }finally{
-                       if(reader!=null) {
-                               try {
-                                       reader.close();
-                               }catch(Exception e) {
-                                       throw new TaskExecutorException("onap build failed");
-                               }
-                       }
-                       if(session!=null) {
-                               session.disconnect();
-                       }
-               }
-               
-               
-               
-       }
-       
-       
-       
-
-}
-        
-        
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import java.io.BufferedReader;\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+import java.io.InputStreamReader;\r
+\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.stereotype.Service;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.service.RemoteScriptExecutionService;\r
+import com.jcraft.jsch.ChannelExec;\r
+import com.jcraft.jsch.JSch;\r
+import com.jcraft.jsch.Session;\r
+\r
+@Service("remoteScriptExecutionService")\r
+public class RemoteScriptExecutionServiceImpl implements RemoteScriptExecutionService{\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(RemoteScriptExecutionServiceImpl.class);\r
+       \r
+       public void executeRemoteScript(String remoteserver,String username,String password,int portnumber,String filename,\r
+                       String fileparams,String srcdir,String destdir,String command)  {\r
+               \r
+               //String filepath=destdir+"/"+filename+"  "+(fileparams!=null?fileparams.replaceAll(",", "  "):" ");\r
+               ChannelExec channelExec=null;\r
+               Session session=null;\r
+               BufferedReader reader =null;\r
+               try {\r
+                       //tranferFile(remoteserver,portnumber,username,password,filename,srcdir,destdir);\r
+                       logger.debug("executing the script  "+command);\r
+                       JSch jsch = new JSch();\r
+                       session = jsch.getSession(username, remoteserver, portnumber);\r
+                       session.setConfig("StrictHostKeyChecking", "no");\r
+                       session.setPassword(password);\r
+                       session.connect();\r
+                       session.setTimeout(36000000);\r
+                       channelExec = (ChannelExec)session.openChannel("exec");\r
+                       InputStream in = channelExec.getInputStream();\r
+                       channelExec.setCommand(command);\r
+                       channelExec.setPty(true);\r
+                       \r
+                       channelExec.connect(36000000);\r
+                       reader = new BufferedReader(new InputStreamReader(in));\r
+                       String line;\r
+                       logger.debug("Script output......................");\r
+                       while ((line = reader.readLine()) != null){\r
+                                logger.debug(line);\r
+                       }\r
+                       \r
+                       channelExec.disconnect();\r
+               while (!channelExec.isClosed()) {\r
+\r
+               }\r
+\r
+                       int exitStatus = channelExec.getExitStatus();\r
+                       \r
+            logger.debug("Script exit code :"+exitStatus);\r
+            if(exitStatus!=0) {\r
+               throw new TaskExecutorException("problem while executing the script . exist code :"+exitStatus);\r
+            }\r
+            \r
+                       \r
+               } catch (IOException e) {\r
+                       throw new TaskExecutorException(filename + " not found.");\r
+               } catch (Exception e) {\r
+                       throw new TaskExecutorException("Problem while executing script"+e.getMessage());\r
+               }finally{\r
+                       if(reader!=null) {\r
+                               try {\r
+                                       reader.close();\r
+                               }catch(Exception e) {\r
+                                       throw new TaskExecutorException("onap build failed");\r
+                               }\r
+                       }\r
+                       if(session!=null) {\r
+                               session.disconnect();\r
+                       }\r
+               }\r
+               \r
+               \r
+               \r
+       }\r
+       \r
+       \r
+       \r
+\r
+}\r
+        \r
+        \r
index ee02934..a8b4106 100644 (file)
-/*
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- *
- * 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 com.akraino.bpm.service.impl;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Service;
-
-import com.akraino.bpm.Exception.TaskExecutorException;
-import com.akraino.bpm.service.ScriptExecutionService;
-
-@Service("scriptExecutionService")
-public class ScriptExecutionServiceImpl implements ScriptExecutionService{
-
-       private static Logger logger = LoggerFactory.getLogger(ScriptExecutionServiceImpl.class);
-       
-       public void executeScript(String filepatch)  {
-               
-               try {
-                       logger.debug("Executing the script.............");
-                       Process p = Runtime.getRuntime().exec(filepatch);
-                       p.waitFor();
-                       BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
-            String line = "";
-            while ((line = input.readLine()) != null) {
-               logger.debug(line);
-            }
-            logger.debug("Script exit code :"+p.exitValue());
-            if(p.exitValue()!=0) {
-               throw new TaskExecutorException("problem while executing the script . exist code :"+p.exitValue());
-            }
-            
-                       
-               } catch (IOException e) {
-                       throw new TaskExecutorException(filepatch + " not found.");
-               } catch (InterruptedException e) {
-                       throw new TaskExecutorException("problem while executing the script "+filepatch);
-               }
-               
-       }
-               public void executeCDScript(String dir,String cmd)  {
-                       
-                       try {
-                               logger.debug("Executing the script.............dir:{},command:{}",dir,cmd);
-                               
-                               String[] command = { "/bin/sh", "-c", "sh  "+cmd };
-                               Process p = Runtime.getRuntime().exec(command, null, new File(dir));
-                               p.waitFor();
-                               BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
-                   String line = "";
-                   while ((line = input.readLine()) != null) {
-                       logger.debug(line);
-                   }
-                   logger.debug("Script exit code :"+p.exitValue());
-                   if(p.exitValue()!=0) {
-                       throw new TaskExecutorException("problem while executing the script . exist code :"+p.exitValue());
-                   }
-                   
-                               
-                       } catch (IOException e) {
-                               throw new TaskExecutorException(cmd + " not found.");
-                       } catch (InterruptedException e) {
-                               throw new TaskExecutorException("problem while executing the script "+cmd);
-                       }
-               
-       }
-               
-               
-               /*public void executeAirshipScript(String cmd)  {
-                       
-                       try {
-                               logger.debug("Executing the script.............{}",cmd);
-                               ProcessBuilder pb = new ProcessBuilder(cmd); 
-                               Process shellProcess = pb.start();
-                               
-                               shellProcess.waitFor(); 
-                               BufferedReader input = new BufferedReader(new InputStreamReader(shellProcess.getInputStream()));
-                   String line = "";
-                   while ((line = input.readLine()) != null) {
-                       logger.debug(line);
-                   }
-                   logger.debug("Script exit code :"+shellProcess.exitValue());
-                   if(shellProcess.exitValue()!=0) {
-                       throw new TaskExecutorException("problem while executing the script . exist code :"+shellProcess.exitValue());
-                   }
-                   
-                               
-                       } catch (IOException e) {
-                               throw new TaskExecutorException(cmd + " not found.");
-                       } catch (InterruptedException e) {
-                               throw new TaskExecutorException("problem while executing the script "+cmd);
-                       }
-               
-       }*/
-
-}
+/*\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\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 com.akraino.bpm.service.impl;\r
+\r
+import java.io.BufferedReader;\r
+import java.io.File;\r
+import java.io.IOException;\r
+import java.io.InputStreamReader;\r
+\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
+import org.springframework.stereotype.Service;\r
+\r
+import com.akraino.bpm.Exception.TaskExecutorException;\r
+import com.akraino.bpm.service.ScriptExecutionService;\r
+\r
+@Service("scriptExecutionService")\r
+public class ScriptExecutionServiceImpl implements ScriptExecutionService{\r
+\r
+       private static Logger logger = LoggerFactory.getLogger(ScriptExecutionServiceImpl.class);\r
+       \r
+       public void executeScript(String filepatch)  {\r
+               \r
+               try {\r
+                       logger.debug("Executing the script.............");\r
+                       Process p = Runtime.getRuntime().exec(filepatch);\r
+                       BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));\r
+            String line = "";\r
+            while ((line = input.readLine()) != null) {\r
+               logger.debug(line);\r
+            }\r
+            p.waitFor();\r
+            logger.debug("Script exit code :"+p.exitValue());\r
+            if(p.exitValue()!=0) {\r
+               throw new TaskExecutorException("problem while executing the script . exist code :"+p.exitValue());\r
+            }\r
+            \r
+                       \r
+               } catch (IOException e) {\r
+                       throw new TaskExecutorException(filepatch + " not found.");\r
+               } catch (InterruptedException e) {\r
+                       throw new TaskExecutorException("problem while executing the script "+filepatch);\r
+               }\r
+               \r
+       }\r
+               public void executeCDScript(String dir,String cmd)  {\r
+                       \r
+                       try {\r
+                               logger.debug("Executing the script.............dir:{},command:{}",dir,cmd);\r
+                               \r
+                               String[] command = { "/bin/sh", "-c", "sh  "+cmd };\r
+                               Process p = Runtime.getRuntime().exec(command, null, new File(dir));\r
+                               p.waitFor();\r
+                               BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));\r
+                   String line = "";\r
+                   while ((line = input.readLine()) != null) {\r
+                       logger.debug(line);\r
+                   }\r
+                   logger.debug("Script exit code :"+p.exitValue());\r
+                   if(p.exitValue()!=0) {\r
+                       throw new TaskExecutorException("problem while executing the script . exist code :"+p.exitValue());\r
+                   }\r
+                   \r
+                               \r
+                       } catch (IOException e) {\r
+                               throw new TaskExecutorException(cmd + " not found.");\r
+                       } catch (InterruptedException e) {\r
+                               throw new TaskExecutorException("problem while executing the script "+cmd);\r
+                       }\r
+               \r
+       }\r
+               \r
+               \r
+               /*public void executeAirshipScript(String cmd)  {\r
+                       \r
+                       try {\r
+                               logger.debug("Executing the script.............{}",cmd);\r
+                               ProcessBuilder pb = new ProcessBuilder(cmd); \r
+                               Process shellProcess = pb.start();\r
+                               \r
+                               shellProcess.waitFor(); \r
+                               BufferedReader input = new BufferedReader(new InputStreamReader(shellProcess.getInputStream()));\r
+                   String line = "";\r
+                   while ((line = input.readLine()) != null) {\r
+                       logger.debug(line);\r
+                   }\r
+                   logger.debug("Script exit code :"+shellProcess.exitValue());\r
+                   if(shellProcess.exitValue()!=0) {\r
+                       throw new TaskExecutorException("problem while executing the script . exist code :"+shellProcess.exitValue());\r
+                   }\r
+                   \r
+                               \r
+                       } catch (IOException e) {\r
+                               throw new TaskExecutorException(cmd + " not found.");\r
+                       } catch (InterruptedException e) {\r
+                               throw new TaskExecutorException("problem while executing the script "+cmd);\r
+                       }\r
+               \r
+       }*/\r
+\r
+}\r
index 3063508..80ddc8d 100644 (file)
@@ -1,14 +1,15 @@
-camunda.bpm:
-  admin-user:
-    id: admin
-    password: admin 
-    firstName: administrator
-  filter:
-    create: All tasks
-  buildresponseurl: http://localhost:8069/AECPortalMgmt/install/status/
-logging:
-  file: C:/tmp/scriptexecutor.log
-  level:
-    com.camunda.bpm: debug
-    org.camunda.bpm: warn
+camunda.bpm:\r
+  admin-user:\r
+    id: admin\r
+    password: admin \r
+    firstName: administrator\r
+  filter:\r
+    create: All tasks\r
+  buildresponseurl: http://localhost:8069/AECPortalMgmt/install/status/\r
+  tokenId: YWthZG1pbg==:9FCBA840BD274292F4DCC995BECE3D09\r
+logging:\r
+  file: C:/tmp/scriptexecutor.log\r
+  level:\r
+    com.akraino.bpm: debug\r
+    org.camunda.bpm: warn\r
     org.springframework: warn
\ No newline at end of file
index 111c60b..8a879f4 100644 (file)
@@ -5,7 +5,8 @@ camunda.bpm:
     firstName: administrator\r
   filter:\r
     create: All tasks\r
-  buildresponseurl: http://135.16.101.85:8069/AECPortalMgmt/edgeSites/status\r
+  buildresponseurl: http://192.168.2.44:8080/AECPortalMgmt/edgeSites/status\r
+  tokenId: YWthZG1pbg==:9FCBA840BD274292F4DCC995BECE3D09\r
 logging:\r
   file: /var/log/scriptexecutor.log\r
   level:\r
index 29c2330..1776b85 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0ryxuei" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.16.0">
+<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0ryxuei" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.14.0">
   <bpmn:process id="deploy" name="deploy" isExecutable="true" camunda:versionTag="1">
     <bpmn:sequenceFlow id="SequenceFlow_125l5l0" sourceRef="StartEvent_1" targetRef="Task_19usii1" />
     <bpmn:startEvent id="StartEvent_1" name="ScriptExecutionStartingPoint">
     <bpmn:sequenceFlow id="SequenceFlow_1jh4nm3" sourceRef="Task_1jo0y1o" targetRef="DeployRemoteexecutor" />
     <bpmn:serviceTask id="Task_0ss7pht" name="Deploymentverfier" camunda:delegateExpression="#{DeployRemoteDeploymentVerificationDelegate}">
       <bpmn:incoming>SequenceFlow_064ccvc</bpmn:incoming>
-      <bpmn:outgoing>SequenceFlow_0e9qo9c</bpmn:outgoing>
     </bpmn:serviceTask>
     <bpmn:sequenceFlow id="SequenceFlow_064ccvc" sourceRef="DeployRemoteexecutor" targetRef="Task_0ss7pht" />
     <bpmn:serviceTask id="DeployRemoteexecutor" name="Deploy Remote Script ecutor" camunda:delegateExpression="#{deployRemoteScriptExecutorTaskDelegate}">
       <bpmn:incoming>SequenceFlow_1jh4nm3</bpmn:incoming>
       <bpmn:outgoing>SequenceFlow_064ccvc</bpmn:outgoing>
     </bpmn:serviceTask>
-    <bpmn:sequenceFlow id="SequenceFlow_0e9qo9c" sourceRef="Task_0ss7pht" targetRef="Postverification" />
-    <bpmn:serviceTask id="Postverification" name="Post verification" camunda:delegateExpression="#{deployPostVerficationRemoteScriptExecutor}">
-      <bpmn:incoming>SequenceFlow_0e9qo9c</bpmn:incoming>
-    </bpmn:serviceTask>
     <bpmn:textAnnotation id="TextAnnotation_1p71e63">
       <bpmn:text>Rest</bpmn:text>
     </bpmn:textAnnotation>
       <bpmn:text>Remote Script Executor</bpmn:text>
     </bpmn:textAnnotation>
     <bpmn:association id="Association_0xluc8y" sourceRef="DeployRemoteexecutor" targetRef="TextAnnotation_071um3l" />
-    <bpmn:textAnnotation id="TextAnnotation_19qps2u">
-      <bpmn:text>Post verification </bpmn:text>
-    </bpmn:textAnnotation>
-    <bpmn:association id="Association_1d4h61h" sourceRef="Postverification" targetRef="TextAnnotation_19qps2u" />
   </bpmn:process>
   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="deploy">
       <bpmndi:BPMNEdge id="SequenceFlow_125l5l0_di" bpmnElement="SequenceFlow_125l5l0">
-        <di:waypoint x="330" y="278" />
-        <di:waypoint x="368" y="278" />
+        <di:waypoint x="407" y="286" />
+        <di:waypoint x="457" y="286" />
         <bpmndi:BPMNLabel>
           <dc:Bounds x="387" y="265" width="90" height="12" />
         </bpmndi:BPMNLabel>
         <dc:Bounds x="339" y="182" width="100" height="30" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Association_0bjstyh_di" bpmnElement="Association_0bjstyh">
-        <di:waypoint x="324" y="265" />
-        <di:waypoint x="375" y="212" />
+        <di:waypoint x="389" y="268" />
+        <di:waypoint x="389" y="212" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="TextAnnotation_00kckqx_di" bpmnElement="TextAnnotation_00kckqx">
         <dc:Bounds x="557" y="166" width="100" height="42" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Association_16sojmg_di" bpmnElement="Association_16sojmg">
-        <di:waypoint x="468" y="253" />
-        <di:waypoint x="565" y="208" />
+        <di:waypoint x="547" y="246" />
+        <di:waypoint x="586" y="208" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
-        <dc:Bounds x="294" y="260" width="36" height="36" />
+        <dc:Bounds x="371" y="268" width="36" height="36" />
         <bpmndi:BPMNLabel>
-          <dc:Bounds x="270" y="296" width="88" height="27" />
+          <dc:Bounds x="346" y="304" width="90" height="24" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="ServiceTask_0y4nqij_di" bpmnElement="Task_19usii1">
-        <dc:Bounds x="368" y="238" width="100" height="80" />
+        <dc:Bounds x="457" y="246" width="100" height="80" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="SequenceFlow_0ji1v0x_di" bpmnElement="SequenceFlow_0ji1v0x">
-        <di:waypoint x="468" y="278" />
-        <di:waypoint x="527" y="278" />
+        <di:waypoint x="557" y="286" />
+        <di:waypoint x="607" y="286" />
         <bpmndi:BPMNLabel>
           <dc:Bounds x="582" y="265" width="0" height="12" />
         </bpmndi:BPMNLabel>
         <dc:Bounds x="707" y="166" width="100" height="42" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Association_05u86o6_di" bpmnElement="Association_05u86o6">
-        <di:waypoint x="627" y="252" />
-        <di:waypoint x="717" y="208" />
+        <di:waypoint x="697" y="246" />
+        <di:waypoint x="736" y="208" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="ServiceTask_0ek6xsx_di" bpmnElement="Task_1jo0y1o">
-        <dc:Bounds x="527" y="238" width="100" height="80" />
+        <dc:Bounds x="607" y="246" width="100" height="80" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="TextAnnotation_0zgafn7_di" bpmnElement="TextAnnotation_0zgafn7">
-        <dc:Bounds x="965" y="357" width="100" height="42" />
+        <dc:Bounds x="1069" y="381" width="100" height="42" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Association_0h3xbpb_di" bpmnElement="Association_0h3xbpb">
-        <di:waypoint x="950" y="317" />
-        <di:waypoint x="992" y="357" />
+        <di:waypoint x="1074" y="326" />
+        <di:waypoint x="1106" y="381" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="SequenceFlow_1jh4nm3_di" bpmnElement="SequenceFlow_1jh4nm3">
-        <di:waypoint x="627" y="278" />
-        <di:waypoint x="689" y="278" />
+        <di:waypoint x="707" y="286" />
+        <di:waypoint x="791" y="286" />
         <bpmndi:BPMNLabel>
           <dc:Bounds x="704" y="265" width="90" height="12" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="ServiceTask_0pazttq_di" bpmnElement="Task_0ss7pht">
-        <dc:Bounds x="858" y="238" width="100" height="80" />
+        <dc:Bounds x="1000" y="246" width="100" height="80" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="SequenceFlow_064ccvc_di" bpmnElement="SequenceFlow_064ccvc">
-        <di:waypoint x="789" y="278" />
-        <di:waypoint x="858" y="278" />
+        <di:waypoint x="891" y="286" />
+        <di:waypoint x="1000" y="286" />
         <bpmndi:BPMNLabel>
           <dc:Bounds x="945.5" y="265" width="0" height="12" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNShape id="ServiceTask_0gdjdwl_di" bpmnElement="DeployRemoteexecutor">
-        <dc:Bounds x="689" y="238" width="100" height="80" />
+        <dc:Bounds x="791" y="246" width="100" height="80" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="TextAnnotation_071um3l_di" bpmnElement="TextAnnotation_071um3l">
-        <dc:Bounds x="707" y="353" width="100" height="30" />
+        <dc:Bounds x="835" y="387" width="100" height="30" />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Association_0xluc8y_di" bpmnElement="Association_0xluc8y">
-        <di:waypoint x="747" y="318" />
-        <di:waypoint x="754" y="353" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge id="SequenceFlow_0e9qo9c_di" bpmnElement="SequenceFlow_0e9qo9c">
-        <di:waypoint x="958" y="278" />
-        <di:waypoint x="1029" y="278" />
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNShape id="ServiceTask_1vpzk0r_di" bpmnElement="Postverification">
-        <dc:Bounds x="1029" y="238" width="100" height="80" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape id="TextAnnotation_19qps2u_di" bpmnElement="TextAnnotation_19qps2u">
-        <dc:Bounds x="1129" y="158" width="100" height="41" />
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge id="Association_1d4h61h_di" bpmnElement="Association_1d4h61h">
-        <di:waypoint x="1119" y="238" />
-        <di:waypoint x="1159" y="199" />
+        <di:waypoint x="856" y="326" />
+        <di:waypoint x="879" y="387" />
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
diff --git a/config/singledeploy.bpmn b/config/singledeploy.bpmn
new file mode 100644 (file)
index 0000000..b20b067
--- /dev/null
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0ryxuei" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.14.0">
+  <bpmn:process id="singlestepdeploy" name="singlestepdeploy" isExecutable="true" camunda:versionTag="1">
+    <bpmn:sequenceFlow id="SequenceFlow_125l5l0" sourceRef="StartEvent_1" targetRef="Task_19usii1" />
+    <bpmn:startEvent id="StartEvent_1" name="ScriptExecutionStartingPoint">
+      <bpmn:outgoing>SequenceFlow_125l5l0</bpmn:outgoing>
+    </bpmn:startEvent>
+    <bpmn:serviceTask id="Task_19usii1" name="ScriptExecutorTask" camunda:delegateExpression="#{bashScriptExecutorTaskDelegate}">
+      <bpmn:incoming>SequenceFlow_125l5l0</bpmn:incoming>
+    </bpmn:serviceTask>
+    <bpmn:textAnnotation id="TextAnnotation_1p71e63">
+      <bpmn:text>Rest</bpmn:text>
+    </bpmn:textAnnotation>
+    <bpmn:association id="Association_0bjstyh" sourceRef="StartEvent_1" targetRef="TextAnnotation_1p71e63" />
+    <bpmn:textAnnotation id="TextAnnotation_00kckqx">
+      <bpmn:text>Script execution Task</bpmn:text>
+    </bpmn:textAnnotation>
+    <bpmn:association id="Association_16sojmg" sourceRef="Task_19usii1" targetRef="TextAnnotation_00kckqx" />
+  </bpmn:process>
+  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
+    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="singlestepdeploy">
+      <bpmndi:BPMNEdge id="SequenceFlow_125l5l0_di" bpmnElement="SequenceFlow_125l5l0">
+        <di:waypoint x="407" y="286" />
+        <di:waypoint x="457" y="286" />
+        <bpmndi:BPMNLabel>
+          <dc:Bounds x="387" y="265" width="90" height="12" />
+        </bpmndi:BPMNLabel>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNShape id="TextAnnotation_1p71e63_di" bpmnElement="TextAnnotation_1p71e63">
+        <dc:Bounds x="339" y="182" width="100" height="30" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge id="Association_0bjstyh_di" bpmnElement="Association_0bjstyh">
+        <di:waypoint x="389" y="268" />
+        <di:waypoint x="389" y="212" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNShape id="TextAnnotation_00kckqx_di" bpmnElement="TextAnnotation_00kckqx">
+        <dc:Bounds x="557" y="166" width="100" height="42" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge id="Association_16sojmg_di" bpmnElement="Association_16sojmg">
+        <di:waypoint x="547" y="246" />
+        <di:waypoint x="586" y="208" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
+        <dc:Bounds x="371" y="268" width="36" height="36" />
+        <bpmndi:BPMNLabel>
+          <dc:Bounds x="346" y="304" width="90" height="24" />
+        </bpmndi:BPMNLabel>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape id="ServiceTask_0y4nqij_di" bpmnElement="Task_19usii1">
+        <dc:Bounds x="457" y="246" width="100" height="80" />
+      </bpmndi:BPMNShape>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+</bpmn:definitions>