Class GenericIndexingTransformer
- java.lang.Object
-
- com.flowable.indexing.job.transformer.GenericIndexingTransformer
-
- All Implemented Interfaces:
HistoryJsonTransformer
public class GenericIndexingTransformer extends Object implements HistoryJsonTransformer
A generic indexing transformer that just gets the data and sends it to ES as is.
-
-
Field Summary
Fields Modifier and Type Field Description protected LowLevelIndexingService
indexingService
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Fields inherited from interface org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer
FIELD_NAME_DATA, FIELD_NAME_TYPE
-
-
Constructor Summary
Constructors Constructor Description GenericIndexingTransformer(LowLevelIndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getTypes()
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 Detail
-
indexingService
protected final LowLevelIndexingService indexingService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
GenericIndexingTransformer
public GenericIndexingTransformer(LowLevelIndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getTypes
public List<String> 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
-
-