\r
import javax.ws.rs.core.Response;\r
\r
-import org.apache.http.client.ClientProtocolException;\r
import org.onap.workflow.common.Config;\r
import org.onap.workflow.common.EnumModuleUrl;\r
import org.onap.workflow.common.RestClient;\r
try {\r
res = RestClient.post(null, null, Constants.DEPLOY_BPMNFILE_URL + "/" + deploymentId);\r
} catch (Exception e) {\r
+ logger.error("Exception: ",e);\r
return null;\r
}\r
\r
try {\r
res = RestClient.post(null, null, Constants.ACITIVI_START_INSTANCE_URL, request);\r
} catch (Exception e) {\r
+ logger.error("Exception: ",e);\r
return null;\r
} \r
return res;\r
}\r
\r
public static ActivitiDeployResponse deploybpmnfile(InputStream ins, String filename)\r
- throws ClientProtocolException, IOException {\r
+ throws IOException {\r
try {\r
return deployPackage2Activiti(ins, filename);\r
} finally {\r
}\r
\r
private static ActivitiDeployResponse deployPackage2Activiti(InputStream ins, String filename)\r
- throws ClientProtocolException, IOException {\r
+ throws IOException {\r
String ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp();\r
int port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort();\r
RestResponse res = RestClient.post(ip, port, DEPLOY_BPMNFILE_URL,\r