Skip to main content

Update Task Status in Workflow

Used to update the execution status of the task within a workflow instance.

Input Payload

AttributeDescription
workflowIdThe execution ID of the workflow to which the task belongs.
taskRefNameThe reference name of the task whose status is being updated.
statusProvide the new status to be set for the task. It can take values: IN_PROGRESS, FAILED_WITH_TERMINAL_ERROR, FAILED, or COMPLETED.

API Endpoint

POST /tasks/{workflowId}/{taskRefName}/{status}

Client SDK Methods

String OrkesTaskClient.updateTaskByRefName(Map<String, Object> output, String workflowId, String taskRefName, String status) throws ApiException