elsa-core/test/component/Elsa.Workflows.ComponentTests/Scenarios
Sipke Schoorstra f03c62a7a4
Revert sending input as global state instead of parameter (#5425)
* Add distributed locking to MassTransitWorkflowDispatcher

This commit introduces a distributed lock to the MassTransitWorkflowDispatcher to prevent concurrent updates to the workflow instance. The lock is acquired before any interaction with the workflow instance and is released after the update operation is complete.

* Refactor MassTransitWorkflowDispatcher for simplified code

Removed unnecessary code in the MassTransitWorkflowDispatcher.cs class, previously used to handle input and properties. Refactored to directly include input and properties in the DispatchWorkflowInstanceRequest object, increasing efficiency and readability.

* Remove unused IDistributedLockProvider dependency

The IDistributedLockProvider dependency in the constructor of MassTransitWorkflowDispatcher class was removed because it was identified as unnecessary in this context. This results in less complicated code and improved maintainability.

* Add bulk dispatch workflows unit tests

Added a new file `BulkDispatchWorkflowsTests.cs` that contains tests for Bulk Dispatch Workflows. Also, two new workflow files `EmployeeGreetingWorkflow.cs` and `GreetEmployeesWorkflow.cs` were added to define workflows used in the unit tests. This will help ensure the Bulk Dispatch Workflows feature is working as expected.
2024-05-22 17:22:19 +02:00
..
Activities/FlowJoins Fix FlowJoin Activity NRE Bug (#5349) 2024-05-08 09:29:15 +02:00
BasicWorkflows Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
BulkDispatchWorkflows Revert sending input as global state instead of parameter (#5425) 2024-05-22 17:22:19 +02:00
CachingAndWorkflowDefinitionActivity Fix Race Condition in WorkflowDefinitionActivity (#5315) 2024-05-01 14:53:37 +02:00
ClusteredHosting Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
DispatchWorkflows Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
HttpWorkflows Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
LogPersistenceModes Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
WorkflowCompletion Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00