Class SerializableType
java.lang.Object
org.flowable.variable.service.impl.types.ByteArrayType
org.flowable.variable.service.impl.types.SerializableType
- All Implemented Interfaces:
VariableType,MutableVariableType<Object,byte[]>
- Direct Known Subclasses:
LongStringType
- Author:
- Tom Baeyens, Marcus Klimstra (CGI)
-
Field Summary
FieldsFields inherited from class org.flowable.variable.service.impl.types.ByteArrayType
lengthVerifier -
Constructor Summary
ConstructorsConstructorDescriptionSerializableType(boolean trackDeserializedObjects) SerializableType(boolean trackDeserializedObjects, VariableLengthVerifier lengthVerifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectInputStreamprotected ObjectOutputStreamdeserialize(byte[] bytes, ValueFields valueFields) protected StringgetEngineType(String scopeType) name of variable type (limited to 100 characters length)getValue(ValueFields valueFields) protected VariableServiceConfigurationgetVariableServiceConfiguration(ValueFields valueFields) booleanisAbleToStore(Object value) byte[]serialize(Object value, ValueFields valueFields) voidsetValue(Object value, ValueFields valueFields) Stores the specified value in the suppliedValueFields.protected voidtraceValue(Object value, byte[] valueBytes, ValueFields valueFields) booleanupdateValueIfChanged(Object tracedObject, byte[] originalBytes, VariableInstanceEntity variableInstanceEntity) Methods inherited from class org.flowable.variable.service.impl.types.ByteArrayType
isCachableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.variable.api.types.VariableType
isReadOnly
-
Field Details
-
TYPE_NAME
- See Also:
-
trackDeserializedObjects
protected boolean trackDeserializedObjects
-
-
Constructor Details
-
SerializableType
public SerializableType() -
SerializableType
public SerializableType(boolean trackDeserializedObjects) -
SerializableType
-
-
Method Details
-
getTypeName
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType- Overrides:
getTypeNamein classByteArrayType
-
getValue
- Specified by:
getValuein interfaceVariableType- Overrides:
getValuein classByteArrayType- Returns:
- the value of a variable based on the specified
ValueFields.
-
setValue
Description copied from interface:VariableTypeStores the specified value in the suppliedValueFields.- Specified by:
setValuein interfaceVariableType- Overrides:
setValuein classByteArrayType
-
traceValue
-
updateValueIfChanged
public boolean updateValueIfChanged(Object tracedObject, byte[] originalBytes, VariableInstanceEntity variableInstanceEntity) - Specified by:
updateValueIfChangedin interfaceMutableVariableType<Object,byte[]>
-
serialize
-
deserialize
-
getVariableServiceConfiguration
-
getEngineType
-
isAbleToStore
- Specified by:
isAbleToStorein interfaceVariableType- Overrides:
isAbleToStorein classByteArrayType- Returns:
- whether this variable type can store the specified value.
-
createObjectInputStream
- Throws:
IOException
-
createObjectOutputStream
- Throws:
IOException
-