06-01-2016 03:49 PM
//Mock rest api calls
RestTemplate restTemplate = new RestTemplate();
MockRestServiceServer mockRestServer = MockRestServiceServer.createServer(restTemplate);
//json response
String responseString200_task = "{MyJsonStructure}";
mockRestServer.expect(requestTo("RESTURLwkfl"))
.andExpect(method(HttpMethod.POST))
.andRespond(withStatus(HttpStatus.OK).contentType(MediaType.APPLICATION_JSON).body(responseString200_task));
activitiRule.getRuntimeService().startProcessInstanceByKey("mykey");
06-02-2016 03:39 AM
org.activiti.engine.test.bpmn.servicetask.WebServiceTaskTest
.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.