02-18-2015 10:47 AM
String url = "http://kermit:kermit@localhost:8080/activiti-rest/service/runtime/process-instances";
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(url);
post.setHeader("Accept", "application/json");
post.setHeader("Content-type", "application/json");
post.addHeader("Authorization","Basic a2VybWl0Omtlcm1pdA==");
// add header
post.setHeader("User-Agent", USER_AGENT);
JSONObject js= new JSONObject();
js.put("processDefinitionId", "processVar:1:12548");
js.put("name","kermit");
StringEntity params=new StringEntity(js.toString());
post.setEntity(params);
HttpResponse response = client.execute(post);
02-18-2015 11:56 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.