| | | 1 | | using Elsa.Workflows; |
| | | 2 | | using Elsa.Workflows.Middleware.Workflows; |
| | | 3 | | using Elsa.Workflows.Pipelines.WorkflowExecution; |
| | | 4 | | using Elsa.Workflows.Runtime.Middleware.Workflows; |
| | | 5 | | |
| | | 6 | | // ReSharper disable once CheckNamespace |
| | | 7 | | namespace Elsa.Extensions; |
| | | 8 | | |
| | | 9 | | /// <summary> |
| | | 10 | | /// Provides extensions to <see cref="IWorkflowExecutionPipelineBuilder"/> that add various middleware components. |
| | | 11 | | /// </summary> |
| | | 12 | | public static class WorkflowExecutionPipelineBuilderExtensions |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Configures the workflow execution pipeline with commonly used components. |
| | | 16 | | /// </summary> |
| | | 17 | | public static IWorkflowExecutionPipelineBuilder UseDefaultPipeline(this IWorkflowExecutionPipelineBuilder pipelineBu |
| | 439 | 18 | | pipelineBuilder |
| | 439 | 19 | | .Reset() |
| | 439 | 20 | | .UseWorkflowHeartbeat() |
| | 439 | 21 | | .UseEngineExceptionHandling() |
| | 439 | 22 | | .UsePersistentVariables() |
| | 439 | 23 | | .UseExceptionHandling() |
| | 439 | 24 | | .UseDefaultActivityScheduler(); |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Installs middleware that persists the workflow instance before and after workflow execution. |
| | | 28 | | /// </summary> |
| | 439 | 29 | | public static IWorkflowExecutionPipelineBuilder UsePersistentVariables(this IWorkflowExecutionPipelineBuilder pipeli |
| | | 30 | | |
| | 439 | 31 | | public static IWorkflowExecutionPipelineBuilder UseWorkflowHeartbeat(this IWorkflowExecutionPipelineBuilder pipeline |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Installs middleware that persists bookmarks after workflow execution. |
| | | 35 | | /// </summary> |
| | | 36 | | [Obsolete("This middleware is no longer used and will be removed in a future version. Bookmarks are now persisted th |
| | 0 | 37 | | public static IWorkflowExecutionPipelineBuilder UseBookmarkPersistence(this IWorkflowExecutionPipelineBuilder pipeli |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Installs middleware that persists the workflow execution journal. |
| | | 41 | | /// </summary> |
| | | 42 | | [Obsolete("This middleware is no longer used and will be removed in a future version. Execution logs are now persist |
| | 0 | 43 | | public static IWorkflowExecutionPipelineBuilder UseWorkflowExecutionLogPersistence(this IWorkflowExecutionPipelineBu |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Installs middleware that persists activity execution records. |
| | | 47 | | /// </summary> |
| | | 48 | | [Obsolete("This middleware is no longer used and will be removed in a future version. Activity state is now persiste |
| | 0 | 49 | | public static IWorkflowExecutionPipelineBuilder UseActivityExecutionLogPersistence(this IWorkflowExecutionPipelineBu |
| | | 50 | | } |