Interface IWorkflowStore
A shared workflow store that enables teams to publish, discover, and install workflows.
public interface IWorkflowStore
Methods
CatalogAsync(string?, string?, CancellationToken)
Lists all workflows in the catalog, optionally filtered by tag or author.
Task<IReadOnlyList<SharedWorkflow>> CatalogAsync(string? tag = null, string? author = null, CancellationToken ct = default)
Parameters
tagstringauthorstringctCancellationToken
Returns
GetAsync(string, string?, CancellationToken)
Gets a specific workflow by name or ID, optionally at a specific version.
Task<SharedWorkflow?> GetAsync(string nameOrId, string? version = null, CancellationToken ct = default)
Parameters
nameOrIdstringversionstringctCancellationToken
Returns
InstallAsync(string, string?, string, CancellationToken)
Installs a workflow from the store to a local directory.
Task<bool> InstallAsync(string nameOrId, string? version, string localDirectory, CancellationToken ct = default)
Parameters
nameOrIdstringversionstringlocalDirectorystringctCancellationToken
Returns
PublishAsync(SharedWorkflow, CancellationToken)
Publishes a workflow to the shared store.
Task PublishAsync(SharedWorkflow workflow, CancellationToken ct = default)
Parameters
workflowSharedWorkflowctCancellationToken
Returns
SearchAsync(string, CancellationToken)
Searches workflows by substring match on name, description, and tags.
Task<IReadOnlyList<SharedWorkflow>> SearchAsync(string query, CancellationToken ct = default)
Parameters
querystringctCancellationToken
Returns
VersionsAsync(string, CancellationToken)
Lists all versions of a named workflow.
Task<IReadOnlyList<SharedWorkflow>> VersionsAsync(string name, CancellationToken ct = default)
Parameters
namestringctCancellationToken