elsa-core/src/modules/Elsa.Alterations.Core/Extensions
Sipke Schoorstra d11754324e
Add DryRun endpoint and workflow instance finder (#5110)
* Add DryRun endpoint and workflow instance finder

Added a new DryRun endpoint for executing alteration plans and implemented the IWorkflowInstanceFinder interface to search for workflow instances. Refactored existing code to use new workflow instance finder service, resulting in cleaner activity implementation.

* Fix empty check in WorkflowInstanceFinder

Change the conditional logic to use `IsEmpty` method on filters rather than checking if the collection `workflowInstanceIds` is empty. This ensures that matching workflow instances are correctly identified when no specific filters are set.

* Refactor WorkflowInstanceFinder with WorkflowStatus default

The WorkflowInstanceFinder service has been refactored to include a default workflow status of Running and to utilize a new method WorkflowFilterIsEmpty, which checks if the workflow instance filter is empty. This improves code readability and encapsulates the logic for determining an empty filter.
2024-03-21 08:22:11 +01:00
..
ServiceCollectionExtensions.cs Add DryRun endpoint and workflow instance finder (#5110) 2024-03-21 08:22:11 +01:00