Package io.camunda.zeebe.engine.api
Interface ProcessingResult
- All Known Implementing Classes:
EmptyProcessingResult
public interface ProcessingResult
Here the interface is just a suggestion. Can be whatever PDT teams thinks is best to work with
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the resulting record batch, which can be empty or consist of multipleRecordBatchEntrys.booleanisEmpty()Indicates whether the processing result is empty.
-
Method Details
-
getRecordBatch
ImmutableRecordBatch getRecordBatch()Returns the resulting record batch, which can be empty or consist of multipleRecordBatchEntrys. These entries are the result of the current processing. If an entry is of typeRecordType.COMMANDit will be later processed as follow-up command.- Returns:
- returns the resulting immutable record batch
-
getProcessingResponse
Optional<ProcessingResponse> getProcessingResponse()- Returns:
- the processing response, which should be sent as answer of a user command. Can be empty if no user command was processed.
-
executePostCommitTasks
boolean executePostCommitTasks()- Returns:
falseto indicate that the side effect could not be applied successfully
-
isEmpty
boolean isEmpty()Indicates whether the processing result is empty.- Returns:
- true if all the following applies:
- there is no response
- the record batch is empty
- there is no tasks to execute
-