Synchronous Execution
Starts a workflow and waits until the workflow completes or the waitUntilTask completes.
Input Payload
Attribute | Description |
---|---|
name | Name of the workflow to be executed. |
version | Choose the required version of the workflow. |
API Endpoint
POST /api/workflow/execute/{name}/{version}
Returns the output of the workflow.
Client SDK Methods
- Java
- Go
- Python
- C#
- JavaScript
- Typescript
- Clojure
CompletableFuture<WorkflowRun> executeWorkflow(StartWorkflowRequest request, String waitUntilTask)
func (e *WorkflowExecutor) ExecuteWorkflow(startWorkflowRequest *model.StartWorkflowRequest, waitUntilTask string) (run *model.WorkflowRun, err error)
WorkflowResourceApi.execute_workflow(self, body, request_id, name, version, **kwargs)
WorkflowRun WorkflowResourceApi.ExecuteWorkflow(StartWorkflowRequest body, string requestId, string name, int? version, string waitUntilTaskRef = null)
WorkflowExecutor.executeWorkflow(
workflowRequest: StartWorkflowRequest,
name: string,
version: number,
requestId: string,
waitUntilTaskRef: string = '',
): Promise<WorkflowRun>
WorkflowExecutor.executeWorkflow(
workflowRequest: StartWorkflowRequest,
name: string,
version: number,
requestId: string,
waitUntilTaskRef: string = '',
): Promise<WorkflowRun>
(run-workflow-sync [options name version requestId {}])