Couldn't find a variable type that is able to serialize


#1

i tried to store an object which has three member variables as a task variable. When i tried to do that i got an error saying “couldn’t find a variable type that is able to serialize”. Is there a way to do that in flowable by adding some custom variables

even though storing the object as three individual properties in ACT_RU_VARIABLE table works fine but it results in lot of query time when i am trying to get the task matching these variables

Thanks in advance


#2

Hi,

The problem could be that member properties are not serializable.
Another possibilities are:

  1. store variable value as Json.
  2. create your custom type which stores your variable value. see VariablesTest

regards
Martin