Package org.restlet.resource

Examples of org.restlet.resource.ClientResource.post()


    ClientResource client = getAuthenticatedClient("process-instance");
    ObjectNode requestNode = objectMapper.createObjectNode();
    requestNode.put("processDefinitionKey", "simpleProcess");
    requestNode.put("var1", "test");
    requestNode.put("var2", 1);
    Representation response = client.post(requestNode);
   
    JsonNode responseNode = objectMapper.readTree(response.getStream());
    assertNotNull(responseNode);
   
    String processInstanceId = responseNode.get("processInstanceId").asText();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.