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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectInputStream
protected ObjectOutputStream
deserialize
(byte[] bytes, ValueFields valueFields) protected String
getEngineType
(String scopeType) name of variable type (limited to 100 characters length)getValue
(ValueFields valueFields) protected VariableServiceConfiguration
getVariableServiceConfiguration
(ValueFields valueFields) boolean
isAbleToStore
(Object value) byte[]
serialize
(Object value, ValueFields valueFields) void
setValue
(Object value, ValueFields valueFields) Stores the specified value in the suppliedValueFields
.protected void
traceValue
(Object value, byte[] valueBytes, ValueFields valueFields) boolean
updateValueIfChanged
(Object tracedObject, byte[] originalBytes, VariableInstanceEntity variableInstanceEntity) Methods inherited from class org.flowable.variable.service.impl.types.ByteArrayType
isCachable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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)
-
-
Method Details
-
getTypeName
Description copied from interface:VariableType
name of variable type (limited to 100 characters length)- Specified by:
getTypeName
in interfaceVariableType
- Overrides:
getTypeName
in classByteArrayType
-
getValue
- Specified by:
getValue
in interfaceVariableType
- Overrides:
getValue
in classByteArrayType
- Returns:
- the value of a variable based on the specified
ValueFields
.
-
setValue
Description copied from interface:VariableType
Stores the specified value in the suppliedValueFields
.- Specified by:
setValue
in interfaceVariableType
- Overrides:
setValue
in classByteArrayType
-
traceValue
-
updateValueIfChanged
public boolean updateValueIfChanged(Object tracedObject, byte[] originalBytes, VariableInstanceEntity variableInstanceEntity) - Specified by:
updateValueIfChanged
in interfaceMutableVariableType<Object,
byte[]>
-
serialize
-
deserialize
-
getVariableServiceConfiguration
-
getEngineType
-
isAbleToStore
- Specified by:
isAbleToStore
in interfaceVariableType
- Overrides:
isAbleToStore
in classByteArrayType
- Returns:
- whether this variable type can store the specified value.
-
createObjectInputStream
- Throws:
IOException
-
createObjectOutputStream
- Throws:
IOException
-