object ZWorkflowReplayer
Replays a workflow given its history. Useful for backwards compatibility testing.
- Alphabetic
- By Inheritance
- ZWorkflowReplayer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def replayWorkflowExecution(history: ZWorkflowExecutionHistory, worker: ZWorker): Task[Unit]
Replays workflow from a ZWorkflowExecutionHistory.
Replays workflow from a ZWorkflowExecutionHistory.
- history
object that contains the workflow ids and the events.
- worker
existing worker with registered workflow implementations.
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecution(history: ZWorkflowExecutionHistory, workflowClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): RIO[ZTestWorkflowEnvironment[Any], Unit]
Replays workflow from a ZWorkflowExecutionHistory.
Replays workflow from a ZWorkflowExecutionHistory.
- history
object that contains the workflow ids and the events.
- workflowClass
s workflow implementation class to replay
- moreClasses
optional additional workflow implementation classes (like child or external workflows)
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecution(jsonSerializedHistory: String, workflowClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): RIO[ZTestWorkflowEnvironment[Any], Unit]
Replays workflow from a json serialized history.
Replays workflow from a json serialized history. The json should be in the format:
{ "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 replay
- moreClasses
optional additional workflow implementation classes
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecution(historyFile: Path, workflowClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): RIO[ZTestWorkflowEnvironment[Any], Unit]
Replays workflow from a file
Replays workflow from a file
- historyFile
file that contains a json serialized history.
- workflowClass
s workflow implementation class to replay
- moreClasses
optional additional workflow implementation classes
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecutionFromResource(resourceName: String, worker: ZWorker): RIO[ZTestWorkflowEnvironment[Any], Unit]
Replays workflow from a resource that contains a json serialized history.
Replays workflow from a resource that contains a json serialized history.
- resourceName
name of the resource.
- worker
worker existing worker with the correct task queue and registered implementations.
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecutionFromResource(resourceName: String, workflowClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): RIO[ZTestWorkflowEnvironment[Any], Unit]
Replays workflow from a resource that contains a json serialized history.
Replays workflow from a resource that contains a json serialized history.
- resourceName
name of the resource.
- workflowClass
s workflow implementation class to replay
- moreClasses
optional additional workflow implementation classes
- Exceptions thrown
Exception
if replay failed for any reason.
- def replayWorkflowExecutions(histories: List[ZWorkflowExecutionHistory], failFast: Boolean, worker: ZWorker): Task[ZReplayResults]
Replays workflows provided by an iterable using an already-initialized worker.
Replays workflows provided by an iterable using an already-initialized worker.
- histories
The histories to be replayed
- failFast
If true, throws upon the first error encountered (if any) during replay. If false, all histories will be replayed and the returned object contains information about any failures.
- worker
A worker which should have registered all the workflow implementations which were used to produce (or are expected to be compatible with) the provided histories.
- returns
If
failFast
is false, contains any replay failures encountered.
- Exceptions thrown
Exception
If replay failed andfailFast
is true.
- def replayWorkflowExecutions(histories: List[ZWorkflowExecutionHistory], failFast: Boolean, workflowClass: ZWorkflowImplementationClass[_], moreClasses: ZWorkflowImplementationClass[_]*): RIO[ZTestWorkflowEnvironment[Any], ZReplayResults]
Replays workflows provided by an iterable.
Replays workflows provided by an iterable.
- histories
The histories to be replayed
- failFast
If true, throws upon the first error encountered (if any) during replay. If false, all histories will be replayed and the returned object contains information about any failures.
- returns
If
failFast
is false, contains any replay failures encountered.
- Exceptions thrown
Exception
If replay failed andfailFast
is true.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)