elsa-core/src/modules/Elsa.Workflows.Runtime/Contracts
Sipke Schoorstra f448e9520a
Fix reloading logic for workflow definitions (#5781)
* Add reloading logic for workflow definitions

Introduced a new mechanism to handle reloaded workflow definitions. This includes creating a "ReloadedWorkflowDefinition" model, updating the caching logic, and modifying notification handlers to work with the enhanced workflow reloading logic. This ensures workflow definitions are updated and managed correctly when published, retracted, or deleted.

* Improve RefreshActivityRegistry documentation

Updated the XML documentation to clarify that `RefreshActivityRegistry` refreshes the `IActivityRegistry` for `WorkflowDefinitionActivityProvider` whenever workflow definitions are reloaded, instead of when they are published, retracted, or deleted.

* Add 'materializer' to user dictionary

The term 'materializer' has been added to the user dictionary to improve code spelling and naming consistency. This change ensures that 'materializer' is recognized as a correct term in the codebase.

* Organize test files by adding a 'Workflows' directory

Renamed 'http-workflow.json' to indicate it belongs under 'Workflows'. This improves file organization and clarity within the 'WorkflowDefinitionReload' scenario.

* Add TestWorkflowMaterializer and TestWorkflowProvider

Introduce `TestWorkflowMaterializer` for deserializing workflows from `TestWorkflowProvider`. Added integration of these new components in the `ReloadWorkflowTests` and `WorkflowServer`. Also renamed `RemoveReloadWorkflowTests` to `ReloadWorkflowTests`.

* Rename and expand workflow reload tests

Renamed `RemoveReloadWorkflowTests` to `ReloadWorkflowTests` to better reflect its purpose and expanded with additional test cases. Added tests to verify workflow and activity registry updates after source provider changes and workflow reloads.

* Update copy settings for workflow test scenarios

Reorganized and added 'CopyToOutputDirectory' settings for JSON files in workflow test scenarios. Ensured all necessary files are correctly included and copied during output directory builds to maintain test consistency.
2024-07-17 09:51:45 +02:00
..
IActivityExecutionManager.cs Alteration Improvements and fixes (#4518) 2023-10-10 12:34:32 +02:00
IActivityExecutionStatsService.cs Include NodeId for unique addressability within graph (#4575) 2023-10-25 22:46:06 +02:00
IActivityExecutionStore.cs Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
IActivityExecutonMapper.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
IBackgroundActivityInvoker.cs
IBackgroundActivityScheduler.cs
IBookmarkManager.cs
IBookmarkPersister.cs Workflow cancellation (#4813) 2024-01-23 12:05:03 +01:00
IBookmarksPersistedHandler.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
IBookmarkStore.cs Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
IBookmarkUpdater.cs Add Bookmark Persister and Bookmark Updater 2023-12-18 16:05:12 +01:00
IEventPublisher.cs Fix consumption of event payload (#4909) 2024-02-09 08:20:54 +01:00
IRegistriesPopulator.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ITaskDispatcher.cs
ITaskReporter.cs
ITriggerIndexer.cs Fix Race Condition in WorkflowDefinitionActivity (#5315) 2024-05-01 14:53:37 +02:00
ITriggerStore.cs Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
IWorkflowCancellationDispatcher.cs Add workflow cancellation functionality 2024-01-09 21:07:57 +01:00
IWorkflowCancellationService.cs Feature/cancel dispatched workflows (#5136) 2024-03-27 12:07:55 +01:00
IWorkflowDefinitionRefresher.cs Workflow refresh feature (#5713) 2024-07-05 18:35:22 +02:00
IWorkflowDefinitionsReloader.cs Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00
IWorkflowDefinitionStorePopulator.cs Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00
IWorkflowDispatcher.cs Alterations with Queries (#5032) 2024-03-13 20:34:46 +01:00
IWorkflowExecutionContextStore.cs Workflow cancellation (#4813) 2024-01-23 12:05:03 +01:00
IWorkflowExecutionLogRecordExtractor.cs Add WorkflowExecutionLogRecordExtractor 2024-07-08 16:13:58 +02:00
IWorkflowExecutionLogSink.cs Add workflow execution log sink 2024-07-04 15:47:34 +02:00
IWorkflowExecutionLogStore.cs Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
IWorkflowHost.cs Fix Race Condition in WorkflowDefinitionActivity (#5315) 2024-05-01 14:53:37 +02:00
IWorkflowHostFactory.cs Fix Race Condition in WorkflowDefinitionActivity (#5315) 2024-05-01 14:53:37 +02:00
IWorkflowInbox.cs Implement distributed lock for registry population (#4983) 2024-02-22 19:37:03 +01:00
IWorkflowInboxMessageStore.cs Implement workflow inbox cleanup service (#4327) 2023-08-13 12:35:15 +02:00
IWorkflowProvider.cs
IWorkflowRegister.cs Add workflow registry 2024-01-04 22:07:55 +01:00
IWorkflowRuntime.cs Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00