Hi,
I'm using the plugin and all variables including Strings and Integers are being stored as ByteArrays. This means that the Activiti API can't query for process instances using process variables.
This serialization of Strings & Integers due to, I believe, this:
from ActivitiGrailsPlugin.groovy
...
// Define custom serializable types for fix issue with serialization
customPreVariableTypes = [new SerializableVariableType()]
...
Since the
SerializableVariableType is the first variable type Activiti checks for being able to store the incoming variable,
it's being used to serialize Strings & Integers.
boolean isAbleToStore(Object value) {
return value instanceof Serializable;
}
My inclination to fix this would be to have this method return false for double, float, long, int & strings (noting that Strings > 4K in length would have to be serialized)
I'm trying to do an evaluation of Activiti in a Grails environment and I'm wondering why I'm the only person reporting this issue. I did upgrade locally to use 5.9, could this be a new issue with 5.12?
I'm also wondering why the plugin hasn't already been updated to a more recent version than 5.9. I was able to build a 5.12 version without too much trouble, but it makes me wonder to what degree this is really being used in the field.
Thanks,
Ben