Class AsyncHistorySession
java.lang.Object
org.flowable.job.service.impl.history.async.AsyncHistorySession
- All Implemented Interfaces:
Session
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for the async history job data, to avoid messing with maps and lists. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsyncHistoryListenerprotected CommandContextprotected CommandContextCloseListenerprotected Stringstatic final Stringprotected TransactionContext -
Constructor Summary
ConstructorsConstructorDescriptionAsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener) AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener, List<String> jobDataTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) voidaddHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId) voidclose()voidflush()protected voidvoidsetJobDataTypes(List<String> jobDataTypes) voidsetSessionData(Map<JobServiceConfiguration, AsyncHistorySession.AsyncHistorySessionData> sessionData) voidsetTenantId(String tenantId) voidsetTransactionContext(TransactionContext transactionContext)
-
Field Details
-
TIMESTAMP
- See Also:
-
commandContext
-
asyncHistoryListener
-
commandContextCloseListener
-
jobDataTypes
-
transactionContext
-
tenantId
-
sessionData
-
-
Constructor Details
-
AsyncHistorySession
public AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener) -
AsyncHistorySession
public AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener, List<String> jobDataTypes)
-
-
Method Details
-
initCommandContextCloseListener
protected void initCommandContextCloseListener() -
addHistoricData
public void addHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data) -
addHistoricData
public void addHistoricData(JobServiceConfiguration jobServiceConfiguration, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId) -
flush
public void flush() -
close
public void close() -
getAsyncHistoryListener
-
getTenantId
-
setTenantId
-
getSessionData
-
setSessionData
public void setSessionData(Map<JobServiceConfiguration, AsyncHistorySession.AsyncHistorySessionData> sessionData) -
getJobDataTypes
-
setJobDataTypes
-
getTransactionContext
-
setTransactionContext
-