* Update multitenancy logic and improve `Result` handling: - Introduce `TenantsOptions` with `IsEnabled` flag to conditionally apply tenant-specific logic. - Refactor `Result` class to support strongly-typed operations and async handlers. - Implement tenant filters respecting multitenancy enablement. - Enhance error logging for workflow definition addition, upgrading error handling. - Refactor tests and storage drivers to use `IsSuccess` from `Result`. * Update src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowDefinitionStorePopulator.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add exception handling when accessing `Value` on failed results; introduce `ValueOrDefault` property for better null support. * Add `ThrowIfFailure` method to handle exceptions in `Result` model and use it in `DefaultWorkflowRegistry` to ensure operation success. * Normalize tenant ID handling by using `NormalizeTenantId()` in `DefaultWorkflowDefinitionStorePopulator`. * Normalize tenant ID usage in unit tests by returning `tenantId.NormalizeTenantId()` in `DefaultWorkflowDefinitionStorePopulatorTests`. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| Attributes | ||
| Codecs | ||
| Contracts | ||
| Converters | ||
| DistributedHosting | ||
| Entities | ||
| Exceptions | ||
| Extensions | ||
| Features | ||
| Helpers | ||
| Models | ||
| Multitenancy | ||
| RecurringTasks | ||
| Serialization | ||
| Services | ||
| Elsa.Common.csproj | ||
| Elsa.Common.csproj.DotSettings | ||
| FodyWeavers.xml | ||