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
Modifier and TypeFieldDescriptionprotected final LowLevelIndexingService
protected final com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from interface com.flowable.indexing.job.transformer.HistoryJsonTransformer
FIELD_NAME_DATA, FIELD_NAME_TYPE
-
Constructor Summary
ConstructorDescriptionGenericIndexingTransformer
(LowLevelIndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetTypes()
boolean
isApplicable
(com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) void
transformJson
(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:
getTypes
in interfaceHistoryJsonTransformer
-
isApplicable
public boolean isApplicable(com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) - Specified by:
isApplicable
in interfaceHistoryJsonTransformer
-
transformJson
public void transformJson(HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalData, CommandContext commandContext) - Specified by:
transformJson
in interfaceHistoryJsonTransformer
-