getWorkflow function

Future<ApiResponse<WorkflowView>> getWorkflow(
  1. ExsitedClient client,
  2. Object workflowId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/workflows/{workflow_id}

Retrieve one workflow, the wf_ id or the code, under workflow.

Implementation

Future<ApiResponse<WorkflowView>> getWorkflow(
  ExsitedClient client,
  Object workflowId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(WorkflowsUrls.workflow,
        pathParams: {'workflow_id': workflowId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: WorkflowView.fromMap);