public final class WorkflowReplayer
extends java.lang.Object
Constructor and Description |
---|
WorkflowReplayer() |
Modifier and Type | Method and Description |
---|---|
static void |
replayWorkflowExecution(java.io.File historyFile,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a file
|
static void |
replayWorkflowExecution(java.lang.String jsonSerializedHistory,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a json serialized history.
|
static void |
replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a
WorkflowExecutionHistory . |
static void |
replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history,
TestWorkflowEnvironment testWorkflowEnvironment,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a
WorkflowExecutionHistory . |
static void |
replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history,
io.temporal.worker.Worker worker)
Replays workflow from a resource that contains a json serialized history.
|
static void |
replayWorkflowExecutionFromResource(java.lang.String resourceName,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a resource that contains a json serialized history.
|
static void |
replayWorkflowExecutionFromResource(java.lang.String resourceName,
TestWorkflowEnvironment testWorkflowEnvironment,
java.lang.Class<?> workflowClass,
java.lang.Class<?>... moreWorkflowClasses)
Replays workflow from a resource that contains a json serialized history.
|
static void |
replayWorkflowExecutionFromResource(java.lang.String resourceName,
io.temporal.worker.Worker worker)
Replays workflow from a resource that contains a json serialized history.
|
public static void replayWorkflowExecutionFromResource(java.lang.String resourceName, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
resourceName
- name of the resourceworkflowClass
- workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecutionFromResource(java.lang.String resourceName, io.temporal.worker.Worker worker) throws java.lang.Exception
resourceName
- name of the resource.worker
- worker existing worker with the correct task queue and registered
implementations.java.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecutionFromResource(java.lang.String resourceName, TestWorkflowEnvironment testWorkflowEnvironment, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
resourceName
- name of the resource.testWorkflowEnvironment
- to be used to create a worker on a task queue.workflowClass
- s workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecution(java.io.File historyFile, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
historyFile
- file that contains a json serialized history.workflowClass
- s workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecution(java.lang.String jsonSerializedHistory, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
{ "workflowId": "...", "runId": "...", "events": [ ... ] }RunId must match the one used to generate the serialized history.
jsonSerializedHistory
- string that contains the json serialized history.workflowClass
- s workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
WorkflowExecutionHistory
. RunId must match the one used
to generate the serialized history.history
- object that contains the workflow ids and the events.workflowClass
- s workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history, TestWorkflowEnvironment testWorkflowEnvironment, java.lang.Class<?> workflowClass, java.lang.Class<?>... moreWorkflowClasses) throws java.lang.Exception
WorkflowExecutionHistory
. RunId must match the one used
to generate the serialized history.history
- object that contains the workflow ids and the events.testWorkflowEnvironment
- to be used to create a worker on a task queue.workflowClass
- s workflow implementation class to replaymoreWorkflowClasses
- optional additional workflow implementation classesjava.lang.Exception
- if replay failed for any reason.public static void replayWorkflowExecution(io.temporal.internal.common.WorkflowExecutionHistory history, io.temporal.worker.Worker worker) throws java.lang.Exception
history
- object that contains the workflow ids and the events.worker
- existing worker with registered workflow implementations.java.lang.Exception
- if replay failed for any reason.