AnsweredAssumed Answered

Failed to serialize to a RestVariable instance

Question asked by davidparraz41 on May 30, 2017
Latest reply on May 30, 2017 by davidparraz41
I'm trying to save a new variable to my process via REST API, 
but when I run the POST, the console shows me the following error:

response.body({"message":"Bad request","exception":"Failed to serialize to a RestVariable instance"})

MY CODE:

String name = "variable";
String type = "string";
String value = "value";
//org.activiti.rest.service.api.engine.variable.RestVariable
RestVariable var = new RestVariable();
var.setName(name);
var.setType(type);
var.setValue(value);
//SPRING RESTOPERATION
restOperations.postForObject(http://urlserver:8080/activiti-rest/service/runtime/process-instances/512551/variables, var, String.class);

Regards!

Outcomes