elsa-core/src/modules/Elsa.Alterations
Sipke Schoorstra e2288d0b34
Fix infinitely waiting Alterations Workflow (#6561)
* Refactor TenantId string handling and nullability checks.

Moved `StringExtensions` to a common module for reuse. Updated tenant-related logic to utilize null-safe string extensions, enhancing consistency and simplifying nullability handling across the codebase.

* Set StrictMode to false by default in ObjectConverter

Modified the default value of StrictMode to `false` to enable the original flexible behavior. Developers can opt into strict mode by explicitly setting it to `true`. This change aims to enhance backward compatibility and minimize unexpected strict conversions.

* Add tenant ID retrieval to ElsaDbContextBase constructor

Retrieve the current tenant ID if available using ITenantAccessor and assign it to the TenantId property. This ensures proper handling of multi-tenancy scenarios in the database context initialization.

* Disable DbContext pooling, manual OTEL instrumentation, and strict mode.

DbContext pooling is turned off to prevent potential issues with shared context instances. Manual OpenTelemetry instrumentation is disabled to rely on automatic instrumentation instead. Strict mode is also disabled to allow more flexibility in object conversion.

* Fix infinitely waiting Alterations Workflow

Replaced workflow dispatch logic with BookmarkQueue and StimulusHasher for triggering workflows. This fixes the issue where the Alterations workflow would signal completion while a later step awaits a completion bookmark. The Bookmark Queue now handles this.
2025-04-05 10:37:05 +02:00
..
Activities Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
AlterationHandlers Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
AlterationTypes Add Cancel alteration type and handler for workflow cancellation 2025-02-07 23:10:22 +01:00
Bookmarks Alterations with Queries (#5032) 2024-03-13 20:34:46 +01:00
Constants Add Fault Code, Category and Type (#5362) 2024-05-10 15:30:32 +02:00
Endpoints Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
Extensions Add Cancel alteration type and handler for workflow cancellation 2025-02-07 23:10:22 +01:00
Features Lazy loading of subgraphs (#5643) 2024-06-25 09:21:50 +02:00
Handlers Fix infinitely waiting Alterations Workflow (#6561) 2025-04-05 10:37:05 +02:00
Middleware/Workflows Merge remote-tracking branch 'origin/patch/3.2.x' 2024-08-30 12:23:38 +02:00
Services Fix infinitely waiting Alterations Workflow (#6561) 2025-04-05 10:37:05 +02:00
Workflows Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
Elsa.Alterations.csproj replace configureawait.props and frameworks.props with Directory.Build.props 2024-01-26 19:04:39 +02:00
Elsa.Alterations.csproj.DotSettings Add Fault Code, Category and Type (#5362) 2024-05-10 15:30:32 +02:00
FodyWeavers.xml