Hi,
I have a user task and I want to set variables through RestAPI.
This is my payload.
{
“modifications”: {
“email”:{
“type”:“Object”,
“value”:“[{‘mailRecipient’:‘abc@xyz.com’,‘mailBody’:‘This is a test mail’},{‘mailRecipient’:‘xyx@xyz.com’,‘mailBody’:‘This is a test mail 2’}]”,
“valueInfo”: {
“serializationDataFormat”: “application/x-java-serialized-object”,
“objectTypeName”: “com.domain.EmailRequest”
}
}
}
}
and I’m using this ReST API
http://localhost:8080/rest/engine/default/task/db92739d-e5da-11e9-9e63-00155dff6b03/variables.
I am getting below error.
Cannot modify variables for task db92739d-e5da-11e9-9e63-00155dff6b03: ENGINE-17007 Cannot set variable with name email. Java serialization format is prohibited