Class DefaultAsyncHistoryJobProducer
- java.lang.Object
-
- org.flowable.job.service.impl.history.async.DefaultAsyncHistoryJobProducer
-
- All Implemented Interfaces:
AsyncHistoryListener
public class DefaultAsyncHistoryJobProducer extends Object implements AsyncHistoryListener
-
-
Constructor Summary
Constructors Constructor Description DefaultAsyncHistoryJobProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddJsonToJob(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, HistoryJobEntity jobEntity, com.fasterxml.jackson.databind.JsonNode rootObjectNode, boolean applyCompression)protected byte[]compress(byte[] bytes)protected HistoryJobEntitycreateJob(CommandContext commandContext, AsyncHistorySession asyncHistorySession, JobServiceConfiguration jobServiceConfiguration, String jobType)protected List<HistoryJobEntity>createJobsWithHistoricalData(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes)protected StringgetJobType(JobServiceConfiguration jobServiceConfiguration, boolean groupingEnabled)List<HistoryJobEntity>historyDataGenerated(JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes)protected voidprocessHistoryJobEntities(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes, List<HistoryJobEntity> historyJobEntities)protected voidscheduleJobs(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<HistoryJobEntity> historyJobEntities)
-
-
-
Method Detail
-
historyDataGenerated
public List<HistoryJobEntity> historyDataGenerated(JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes)
- Specified by:
historyDataGeneratedin interfaceAsyncHistoryListener
-
createJobsWithHistoricalData
protected List<HistoryJobEntity> createJobsWithHistoricalData(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes)
-
createJob
protected HistoryJobEntity createJob(CommandContext commandContext, AsyncHistorySession asyncHistorySession, JobServiceConfiguration jobServiceConfiguration, String jobType)
-
scheduleJobs
protected void scheduleJobs(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<HistoryJobEntity> historyJobEntities)
-
addJsonToJob
protected void addJsonToJob(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, HistoryJobEntity jobEntity, com.fasterxml.jackson.databind.JsonNode rootObjectNode, boolean applyCompression)
-
compress
protected byte[] compress(byte[] bytes)
-
getJobType
protected String getJobType(JobServiceConfiguration jobServiceConfiguration, boolean groupingEnabled)
-
processHistoryJobEntities
protected void processHistoryJobEntities(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration, List<com.fasterxml.jackson.databind.node.ObjectNode> historyObjectNodes, List<HistoryJobEntity> historyJobEntities)
-
-