trigger
method, you can start a workflow run and get its run id.
failureUrl
and useFailureFunction
are provided, useFailureFunction
takes precedence and the value of the url
parameter is used as failureUrl
.
If workflowRunId
parameter isn’t passed, a run id will be generated randomly. If workflowRunId
is passed, wfr_
prefix will be added to it.
For other alternatives of starting a workflow, see the documentation on starting a workflow run.
log
method, you can use the List Workflow Runs API:
cursor
and runs
. Using the cursor
, you can continue the search later.
runs
will be a list of runs. Each run has these fields:
workflowRunId
: ID of the workflowworkflowUrl
: URL of the workflowworkflowState
: State of the workflow run.workflowRunCreatedAt
: number; Time when the workflow run started (as unix timestamp)workflowRunCompletedAt
; If run has completed, time when workflow run completed (as unix timestamp)failureFunction
: Information on the message published when the workflow failed and failureUrl
or failureFunction
were calleddlqId
: If the workflow run has failed, DLQ id associated with the workflow run.workflowRunResponse
: Result returned at the end of the workflow.invoker
: If the workflow was invoked; run id, url and created time of the invoking workflow.steps
: List of steps showing the progress of the workflow.steps
field contains a list of steps. Each step is in one of the following three formats:
https://your-endpoint.com
and you
want to cancel all workflow runs on it, you can use urlStartingWith
.
Note that this will cancel workflows in all endpoints under
https://your-endpoint.com
.
resume
and restart
:
notify
method:
eventData
will be available to the workflow run in the
eventData
field of the context.waitForEvent
method.
getWaiters
method:
Waiter
objects: