Interface IWorkflowsClient

Namespace: IndicoV2-Workflows
Assembly: IndicoV2-Abstractions-dll

public interface IWorkflowsClient

Methods

AddDataAsync(int, CancellationToken)

Mutation to update data in a workflow, presumably after new data is added to the dataset-

Task<IWorkflowAddDataResult> AddDataAsync(int workflowId, CancellationToken cancellationToken)

Parameters

workflowId int

Workflow id to update

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<IWorkflowAddDataResult>

GetStatusAsync(int, CancellationToken)

Gets workflow's status

Task<WorkflowStatus> GetStatusAsync(int workflowId, CancellationToken cancellationToken)

Parameters

workflowId int

Workflow's id

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<WorkflowStatus>

Status

ListAsync(int, CancellationToken)

Lists for a given

Task<IEnumerable<IWorkflow>> ListAsync(int dataSetId, CancellationToken cancellationToken = default)

Parameters

dataSetId int

's Id>

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[ienumerable](https://learn-microsoft-com/dotnet/api/system-collections-generic-ienumerable\-1)<[iworkflow](indicov2-workflows-models-iworkflow)\>

ListAsync(int[], CancellationToken)

Lists all for given s

Task<IEnumerable<IWorkflow>> ListAsync(int[] dataSetIds, CancellationToken cancellationToken = default)

Parameters

dataSetIds int[]

Array of Ids

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[ienumerable](https://learn-microsoft-com/dotnet/api/system-collections-generic-ienumerable\-1)<[iworkflow](indicov2-workflows-models-iworkflow)\>