Class AsyncHistorySession
- java.lang.Object
-
- org.flowable.job.service.impl.history.async.AsyncHistorySession
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncHistorySession.AsyncHistorySessionDataWrapper for the async history job data, to avoid messing with maps and lists.
-
Field Summary
Fields Modifier and Type Field Description protected AsyncHistoryListenerasyncHistoryListenerprotected CommandContextcommandContextprotected CommandContextCloseListenercommandContextCloseListenerprotected List<String>jobDataTypesprotected Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData>sessionDataprotected StringtenantIdstatic StringTIMESTAMPprotected TransactionContexttransactionContext
-
Constructor Summary
Constructors Constructor Description AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener)AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener, List<String> jobDataTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHistoricData(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()AsyncHistoryListenergetAsyncHistoryListener()List<String>getJobDataTypes()Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData>getSessionData()StringgetTenantId()TransactionContextgetTransactionContext()protected voidinitCommandContextCloseListener()voidsetJobDataTypes(List<String> jobDataTypes)voidsetSessionData(Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData> sessionData)voidsetTenantId(String tenantId)voidsetTransactionContext(TransactionContext transactionContext)
-
-
-
Field Detail
-
TIMESTAMP
public static final String TIMESTAMP
- See Also:
- Constant Field Values
-
commandContext
protected CommandContext commandContext
-
asyncHistoryListener
protected AsyncHistoryListener asyncHistoryListener
-
commandContextCloseListener
protected CommandContextCloseListener commandContextCloseListener
-
transactionContext
protected TransactionContext transactionContext
-
tenantId
protected String tenantId
-
sessionData
protected Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData> sessionData
-
-
Constructor Detail
-
AsyncHistorySession
public AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener)
-
AsyncHistorySession
public AsyncHistorySession(CommandContext commandContext, AsyncHistoryListener asyncHistoryJobListener, List<String> jobDataTypes)
-
-
Method Detail
-
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)
-
getAsyncHistoryListener
public AsyncHistoryListener getAsyncHistoryListener()
-
getTenantId
public String getTenantId()
-
setTenantId
public void setTenantId(String tenantId)
-
getSessionData
public Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData> getSessionData()
-
setSessionData
public void setSessionData(Map<JobServiceConfiguration,AsyncHistorySession.AsyncHistorySessionData> sessionData)
-
getTransactionContext
public TransactionContext getTransactionContext()
-
setTransactionContext
public void setTransactionContext(TransactionContext transactionContext)
-
-