WorkflowTestRuntime

Runs a Workflow and provides access to its renderings, outputs, and snapshots.

For each of renderings, outputs, and snapshots, this class gives you a few ways to access information about them:

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

True if the workflow has emitted a new output that is ready to be consumed.

Link copied to clipboard

True if the workflow has emitted a new rendering that is ready to be consumed.

Link copied to clipboard

True if the workflow has emitted a new snapshot that is ready to be consumed.

Functions

Link copied to clipboard
fun awaitNextOutput(timeoutMs: Long? = null): OutputT

Blocks until the workflow emits an output, then returns it.

Link copied to clipboard
fun awaitNextRendering(timeoutMs: Long? = null, skipIntermediate: Boolean = true): RenderingT

Blocks until the workflow emits a rendering, then returns it.

Link copied to clipboard
fun awaitNextSnapshot(timeoutMs: Long? = null, skipIntermediate: Boolean = true): TreeSnapshot

Blocks until the workflow emits a snapshot, then returns it.

Link copied to clipboard
fun sendProps(input: PropsT)

Sends input to the workflow.