package ve.gob.cnti.bonita;

public class TestRest {

	public TestRest() {
		// TODO Auto-generated constructor stub
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		//IRestConnection rest=new RestConnection();
		//System.out.println(rest.getVariable("a_cedula","166"));
		SessionImpl session=new SessionImpl();
		session.startConection("admin", "admin");
		//session.executeGetRequest("/loginservice?username=admin&redirect=false&password=admin");
		//System.out.println(session.executeGetRequest("/API/bpm/caseVariable/166/a_cedula"));
		//session.executePutRequest("/API/bpm/caseVariable/166/a_cedula", "{\"value\":\"8888\",\"type\":\"java.lang.Integer\"}");
		System.out.println(session.consumeResponseIfNecessary(session.executeGetRequest("/API/bpm/caseVariable/166/a_cedula")));
		//session.executePutRequest("http://localhost:8080/bonita/API/bpm/activity/5", payloadAsString)
	//{"variables": [{"name": "stringVariable", "value": "aValue"}}
		
	}

}
