Class DefaultAsyncHistoryJobProducer
java.lang.Object
org.flowable.job.service.impl.history.async.DefaultAsyncHistoryJobProducer
- All Implemented Interfaces:
AsyncHistoryListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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)
-
Constructor Details
-
DefaultAsyncHistoryJobProducer
public DefaultAsyncHistoryJobProducer()
-
-
Method Details
-
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)
-