Workflow

class Workflow(val config: WorkflowConfig)

Class representing a workflow.

Constructors

Link copied to clipboard
constructor(config: WorkflowConfig)

Properties

Link copied to clipboard

The configuration for the workflow.

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun Workflow.hasCookies(): Boolean
Link copied to clipboard
suspend fun init()

Initializes the workflow.

Link copied to clipboard
suspend fun send(request: HttpRequest): HttpResponse

Sends a request and returns the response.

Link copied to clipboard
suspend fun signOff(): Result<Unit>

Signs off the workflow.

Link copied to clipboard
suspend fun start(): Node

Starts the workflow with a default request.

suspend fun start(block: SharedContext.() -> Unit): Node

Starts the workflow with a block that allow to set attributes in FlowContext.

suspend fun start(request: HttpRequest, context: SharedContext = SharedContext(mutableMapOf())): Node

Starts the workflow with the provided request.