Hi,
writing execution or task listener in javascript the method setVariable(Local) stores strings as TEXTVAR in h2 database (which is limited to 4000kb). Is there a way (a method) to store (local) variables as BLOB from javascript (not using java!)
thanks a lot,… That is what I’ve been looking for. For all other users who have the same problem, here the complete solution storing value greater than 4000KB on javascript level:
setVariableLocalAsBlob = function(name,blob)
{
var value = Java.type('org.camunda.bpm.engine.variable.Variables')
.objectValue(blob)
.serializationDataFormat(Variables.SerializationDataFormats.JAVA)
.create();
task.setVariableLocal(name,value);
};