this.variableId = variableId;
this.engine = engine;
}
public VariableInstanceDto getVariable(boolean deserializeObjectValue) {
VariableInstanceQuery baseQuery = baseQuery();
// do not fetch byte arrays
baseQuery.disableBinaryFetching();
if(!deserializeObjectValue) {
baseQuery.disableCustomObjectDeserialization();
}
VariableInstance variableInstance = baseQuery.singleResult();
if(variableInstance != null) {
return VariableInstanceDto.fromVariableInstance(variableInstance);
} else {