getWorkflowRun method

Future<GetWorkflowRunResponse> getWorkflowRun({
  1. required String id,
  2. required String projectName,
  3. required String spaceName,
})

Returns information about a specified run of a workflow.

Parameter id : The ID of the workflow run. To retrieve a list of workflow run IDs, use ListWorkflowRuns.

Parameter projectName : The name of the project in the space.

Parameter spaceName : The name of the space.

Implementation

Future<GetWorkflowRunResponse> getWorkflowRun({
  required String id,
  required String projectName,
  required String spaceName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/workflowRuns/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetWorkflowRunResponse.fromJson(response);
}