invoke

operator fun invoke(workflow: String, name: String? = null, step: UseWorkflow.() -> Unit = {}): UseWorkflow

Creates and configures a UseWorkflow instance with Kotlin DSL syntax.

Return

Configured UseWorkflow instance

Parameters

workflow

The workflow reference (local path or external reference)

name

Optional name for the step (for logging and identification)

step

Configuration lambda to customize the step