return variableInstance.isAbleToStoreSerializedValue(serializedValue, configuration);
}
public PersistentVariableInstance createVariableInstance(String variableName, Object value, CoreVariableScope<PersistentVariableInstance> sourceActivityExecution) {
if(value != null && value instanceof SerializedVariableValue) {
SerializedVariableValue serializedVariableValue = (SerializedVariableValue) value;
return createVariableInstanceFromSerialized(variableName,
serializedVariableValue.getValue(),
ProcessEngineVariableType.SPIN.getName(),
serializedVariableValue.getConfig(),
sourceActivityExecution);
} else {
VariableType type = getVariableTypeForValue(value);