Class GenericIndexingTransformer
java.lang.Object
com.flowable.indexing.job.transformer.GenericIndexingTransformer
- All Implemented Interfaces:
HistoryJsonTransformer
A generic indexing transformer that just gets the data and sends it to ES as is.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LowLevelIndexingServiceprotected final com.fasterxml.jackson.databind.ObjectMapperFields inherited from interface com.flowable.indexing.job.transformer.HistoryJsonTransformer
FIELD_NAME_DATA, FIELD_NAME_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionGenericIndexingTransformer(LowLevelIndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetTypes()booleanisApplicable(com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) voidtransformJson(HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext)
-
Field Details
-
indexingService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
GenericIndexingTransformer
public GenericIndexingTransformer(LowLevelIndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getTypes
- Specified by:
getTypesin interfaceHistoryJsonTransformer
-
isApplicable
public boolean isApplicable(com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) - Specified by:
isApplicablein interfaceHistoryJsonTransformer
-
transformJson
public void transformJson(HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) - Specified by:
transformJsonin interfaceHistoryJsonTransformer
-