Im trying to Query a Global Variable and Im getting the error: Variables of type ByteArray cannot be used to query.
My code is this:
long procesos = historyService.createHistoricVariableInstanceQuery().
.variableValueEquals("numDoc", nuevoCaso.getNumDoc().count();
Do I have any solution to this or any alternative?
thanks in advance.
Hi,
What is the type of your variable?
If the variable value is serialized into byte array (e.g. java serialization, too long strings …) it is not possible to search through the bytearrays because of that.
Change variable type to primitive type or String.
Regards
Martin
Hi Martin,
yes, it is a Java Object. So Do I have any option to query this Variable?
Hi Joseph,
These types are supported for variableValueEquals
.
Regards
Martin