public bool postForm(Entity.FormData formData) { var serializerSettings = new JsonSerializerSettings(); serializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); var serialized = JsonConvert.SerializeObject(formData, serializerSettings); StringContent stringContent = new StringContent(serialized, Encoding.UTF8, "application/json"); return(restApp.makePost("activiti-rest/service/form/form-data/", stringContent)); }
internal bool endTask(string id) { StringContent stringContent = new StringContent("{\"action\" : \"complete\"}", Encoding.UTF8, "application/json"); return(restApp.makePost("activiti-rest/service/runtime/tasks/" + id, stringContent)); }
public bool addProcessInstance(string id) { StringContent stringContent = new StringContent("{\"processDefinitionId\":\"" + id + "\"}", Encoding.UTF8, "application/json"); return(restApp.makePost("activiti-rest/service/runtime/process-instances/", stringContent)); }