IVberPersistenceProvider.cs 920 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. using VberZero.Workflow.DesignInfo;
  5. using VberZero.Workflow.Persistence;
  6. using WorkflowCore.Interface;
  7. namespace VberZero.Workflow
  8. {
  9. public interface IVberPersistenceProvider : IPersistenceProvider
  10. {
  11. Task<WorkflowInfo> GetPersistedWorkflow(string id, CancellationToken cancellationToken = default(CancellationToken));
  12. Task<IEnumerable<WorkflowInfo>> GetAllRunnablePersistedWorkflow(string definitionId, int version, CancellationToken cancellationToken = default(CancellationToken));
  13. Task<WorkflowExecutionPointerInfo> GetPersistedExecutionPointer(string id, CancellationToken cancellationToken = default(CancellationToken));
  14. Task<WorkflowDefinitionInfo> GetPersistedWorkflowDefinition(string id, int version, CancellationToken cancellationToken = default(CancellationToken));
  15. }
  16. }