public class JsonType extends Object implements VariableType, MutableVariableType<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
LONG_JSON_TYPE_NAME |
protected int |
maxLength |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected boolean |
trackObjects |
static String |
TYPE_NAME |
protected String |
typeName |
| Modifier | Constructor and Description |
|---|---|
|
JsonType(int maxLength,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean trackObjects) |
protected |
JsonType(int maxLength,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean trackObjects,
String typeName) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getEngineType(String scopeType) |
String |
getTypeName()
name of variable type (limited to 100 characters length)
|
Object |
getValue(ValueFields valueFields) |
protected VariableServiceConfiguration |
getVariableServiceConfiguration(ValueFields valueFields) |
boolean |
isAbleToStore(Object value) |
boolean |
isCachable()
Indicates if this variable type supports caching.
|
static JsonType |
longJsonType(int maxLength,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean trackObjects) |
void |
setValue(Object value,
ValueFields valueFields)
Stores the specified value in the supplied
ValueFields. |
protected void |
traceValue(com.fasterxml.jackson.databind.JsonNode value,
ValueFields valueFields) |
boolean |
updateValueIfChanged(com.fasterxml.jackson.databind.JsonNode originalNode,
com.fasterxml.jackson.databind.JsonNode originalCopyNode,
VariableInstanceEntity variableInstanceEntity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadOnlypublic static final String TYPE_NAME
protected static final String LONG_JSON_TYPE_NAME
protected final int maxLength
protected final boolean trackObjects
protected final String typeName
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public JsonType(int maxLength,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean trackObjects)
protected JsonType(int maxLength,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
boolean trackObjects,
String typeName)
public static JsonType longJsonType(int maxLength, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean trackObjects)
public String getTypeName()
VariableTypegetTypeName in interface VariableTypepublic boolean isCachable()
VariableTypeIndicates if this variable type supports caching.
If caching is supported, the result of VariableType.getValue(ValueFields) is saved for the duration of the session and used for subsequent reads of the variable's value.
If caching is not supported, all reads of a variable's value require a fresh call to VariableType.getValue(ValueFields).
isCachable in interface VariableTypepublic Object getValue(ValueFields valueFields)
getValue in interface VariableTypeValueFields.public void setValue(Object value, ValueFields valueFields)
VariableTypeValueFields.setValue in interface VariableTypepublic boolean updateValueIfChanged(com.fasterxml.jackson.databind.JsonNode originalNode,
com.fasterxml.jackson.databind.JsonNode originalCopyNode,
VariableInstanceEntity variableInstanceEntity)
updateValueIfChanged in interface MutableVariableType<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>protected void traceValue(com.fasterxml.jackson.databind.JsonNode value,
ValueFields valueFields)
protected VariableServiceConfiguration getVariableServiceConfiguration(ValueFields valueFields)
public boolean isAbleToStore(Object value)
isAbleToStore in interface VariableTypeCopyright © 2023 Flowable. All rights reserved.