public interface TransactionLog
-
Method Summary
Modifier and TypeMethodDescriptionvoidCleans up any transaction log entries as complete method means transaction was completed successfully so any log entries can be safely droppedvoidbooleanbyte[]readContent(String processId, String instanceId) Returns content of the process instance with given identifier that belongs to process definition identified byprocessIdvoidrecord(String transactionId, String processId, String instanceId, NodeInstance currentNodeInstance) Records transaction operation that should be stored in transaction log before it gets flushed into the storagerecoverable(String processId) Returns set of identifiers of process instances that were not successfully processed and requires recoverybooleanDetermines if there are any transactions left that require recovery
-
Method Details
-
requiresRecovery
boolean requiresRecovery()Determines if there are any transactions left that require recovery- Returns:
- true when there are unfinished transactions otherwise false
-
readContent
Returns content of the process instance with given identifier that belongs to process definition identified byprocessId- Parameters:
processId- id of the process definitioninstanceId- id of the process instance- Returns:
- returns read bytes representing the process instance
-
recoverable
Returns set of identifiers of process instances that were not successfully processed and requires recovery- Parameters:
processId- identifier of the process that the recoverable instances should be located- Returns:
- set of instance ids that are to be recovered
-
record
void record(String transactionId, String processId, String instanceId, NodeInstance currentNodeInstance) Records transaction operation that should be stored in transaction log before it gets flushed into the storage- Parameters:
transactionId- - unique identifier of the transactionprocessId- id of the process definitioninstanceId- - id of the instance the transaction belong tocurrentNodeInstance- - node instance that is being triggered
-
complete
Cleans up any transaction log entries as complete method means transaction was completed successfully so any log entries can be safely dropped- Parameters:
transactionId- - unique identifier of the transaction
-
complete
-
contains
-