Package com.flowable.indexing.job
Class IndexDataAsyncHistoryJobHandler
java.lang.Object
com.flowable.indexing.job.AbstractAsyncHistoryJobHandler
com.flowable.indexing.job.IndexDataAsyncHistoryJobHandler
- All Implemented Interfaces:
HistoryJobHandler
- Direct Known Subclasses:
IndexZippedDataAsyncHistoryJobHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected BulkIndexRequestExecutor
protected HistoryJsonTransformer
protected Map<String,
List<HistoryJsonTransformer>> static final String
protected final IndexingHistoryJobProducer
Fields inherited from class com.flowable.indexing.job.AbstractAsyncHistoryJobHandler
isAsyncHistoryJsonGroupingEnabled, jobType, logger
-
Constructor Summary
ConstructorDescriptionIndexDataAsyncHistoryJobHandler
(IndexingHistoryJobProducer jobProducer, List<HistoryJsonTransformer> historyJsonTransformers, BulkIndexRequestExecutor bulkIndexRequestExecutor) IndexDataAsyncHistoryJobHandler
(String jobType, IndexingHistoryJobProducer jobProducer, List<HistoryJsonTransformer> historyJsonTransformers, BulkIndexRequestExecutor bulkIndexRequestExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHistoryJsonTransformer
(HistoryJsonTransformer historyJsonTransformer) void
execute
(HistoryJobEntity historyJob, String configuration, CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) protected void
executeHistoryTransformers
(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalJsonData, List<HistoryJsonTransformer> transformers) protected List<HistoryJobEntity>
generateHistoryJobs
(JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes) protected void
handleNoMatchingHistoryTransformer
(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalData, String type) protected void
processHistoryJson
(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.JsonNode historyNode) void
setDefaultHistoryJsonTransformer
(HistoryJsonTransformer defaultHistoryJsonTransformer) void
setHistoryJsonTransformers
(Map<String, List<HistoryJsonTransformer>> historyJsonTransformers) Methods inherited from class com.flowable.indexing.job.AbstractAsyncHistoryJobHandler
getJobBytes, getType, isAsyncHistoryJsonGroupingEnabled, setAsyncHistoryJsonGroupingEnabled
-
Field Details
-
JOB_TYPE
- See Also:
-
jobProducer
-
bulkIndexRequestExecutor
-
historyJsonTransformers
-
defaultHistoryJsonTransformer
-
-
Constructor Details
-
IndexDataAsyncHistoryJobHandler
public IndexDataAsyncHistoryJobHandler(IndexingHistoryJobProducer jobProducer, List<HistoryJsonTransformer> historyJsonTransformers, BulkIndexRequestExecutor bulkIndexRequestExecutor) -
IndexDataAsyncHistoryJobHandler
public IndexDataAsyncHistoryJobHandler(String jobType, IndexingHistoryJobProducer jobProducer, List<HistoryJsonTransformer> historyJsonTransformers, BulkIndexRequestExecutor bulkIndexRequestExecutor)
-
-
Method Details
-
addHistoryJsonTransformer
-
execute
public void execute(HistoryJobEntity historyJob, String configuration, CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) - Specified by:
execute
in interfaceHistoryJobHandler
- Overrides:
execute
in classAbstractAsyncHistoryJobHandler
-
processHistoryJson
protected void processHistoryJson(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.JsonNode historyNode) - Specified by:
processHistoryJson
in classAbstractAsyncHistoryJobHandler
-
executeHistoryTransformers
protected void executeHistoryTransformers(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalJsonData, List<HistoryJsonTransformer> transformers) -
handleNoMatchingHistoryTransformer
protected void handleNoMatchingHistoryTransformer(CommandContext commandContext, HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode historicalData, String type) -
generateHistoryJobs
protected List<HistoryJobEntity> generateHistoryJobs(JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes) - Specified by:
generateHistoryJobs
in classAbstractAsyncHistoryJobHandler
-
getHistoryJsonTransformers
-
setHistoryJsonTransformers
public void setHistoryJsonTransformers(Map<String, List<HistoryJsonTransformer>> historyJsonTransformers) -
getDefaultHistoryJsonTransformer
-
setDefaultHistoryJsonTransformer
-