public interface ReplayWorkflow
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String reason) |
void |
close() |
boolean |
eventLoop() |
java.util.Optional<io.temporal.api.common.v1.Payloads> |
getOutput() |
WorkflowImplementationOptions |
getWorkflowImplementationOptions() |
void |
handleSignal(java.lang.String signalName,
java.util.Optional<io.temporal.api.common.v1.Payloads> input,
long eventId)
Handle an external signal event.
|
WorkflowExecutionException |
mapUnexpectedException(java.lang.Throwable failure)
Convert exception that happened in the framework code to the format that ReplayWorkflow
implementation understands.
|
java.util.Optional<io.temporal.api.common.v1.Payloads> |
query(io.temporal.api.query.v1.WorkflowQuery query)
Called after all history is replayed and workflow cannot make any progress if workflow task is
a query.
|
void |
start(io.temporal.api.history.v1.HistoryEvent event,
ReplayWorkflowContext context) |
void start(io.temporal.api.history.v1.HistoryEvent event, ReplayWorkflowContext context)
void handleSignal(java.lang.String signalName, java.util.Optional<io.temporal.api.common.v1.Payloads> input, long eventId)
boolean eventLoop()
java.util.Optional<io.temporal.api.common.v1.Payloads> getOutput()
void cancel(java.lang.String reason)
void close()
java.util.Optional<io.temporal.api.common.v1.Payloads> query(io.temporal.api.query.v1.WorkflowQuery query)
query
- argumentsWorkflowExecutionException mapUnexpectedException(java.lang.Throwable failure)
failure
- Unexpected failure causeWorkflowImplementationOptions getWorkflowImplementationOptions()