Hi,
i do have a simple workflow of a number of user tasks where one of them trigger a message with some variables.
the user task initialise an object and set it in a variable called TaskResult. the variable can be viewed in the cockpit serialised correctly and it is type is identified as java object. but when i run script (listener script on task complete) with the following code
var execution=task.execution;
execution
.getProcessEngineServices()
.getRuntimeService()
.createMessageCorrelation(“EmailMessageEvent”)
.setVariable(“TaskResult”,TaskResult).correlateWithResult();
the variable get serialised as a hashmap which totally unusable in my app (using C# /Rest API)
does anyone know how to fix this .
Regards,