elsa-core/test/unit/Elsa.Workflows.Runtime.UnitTests/Services
Sipke Schoorstra d4c00f13ed
fix(runtime): read InternalState from logPersistenceConfig (#8126)
* fix(runtime): read InternalState from logPersistenceConfig

Honor Studio-written customProperties.logPersistenceConfig.internalState
and fall back to workflow internalState, then default/ResolveMode.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test(runtime): register activity context in InternalState evaluator tests

ActivityTestFixture.BuildAsync does not add the context to
WorkflowExecutionContext.ActivityExecutionContexts, which
GetPersistenceDefaultsAsync requires.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* fix(runtime): evaluate workflow InternalState with root context

Use the workflow/root ExpressionExecutionContext for workflow-level
internalState (parity with default), and keep the activity context
for the activity override. Look up component records by activity name.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-13 23:09:36 +02:00
..
BackgroundStimulusDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BackgroundWorkflowCancellationDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BackgroundWorkflowDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BookmarkQueueDeadLetterTests.cs Fix workflow commit atomicity 2026-06-21 19:58:09 +02:00
DefaultActivityExecutionMapperTests.cs fix(runtime): read InternalState from logPersistenceConfig (#8126) 2026-09-13 23:09:36 +02:00
DefaultCommitStateHandlerTests.cs Address PR review comments 2026-06-23 03:07:50 +02:00
DefaultRegistriesPopulatorTests.cs Avoid repeated tenant-agnostic registry population 2026-08-02 01:59:45 +02:00
DefaultWorkflowDefinitionStorePopulatorTests.cs Merge branch 'fix/trigger-indexing-idempotency' 2026-02-24 15:30:54 +01:00
KeyValueFeatureTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
KeyValueWorkflowDispatchOutboxStoreTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
LocalWorkflowClientTests.cs Improves workflow materializer handling (#7195) 2026-01-19 08:59:12 +01:00
RestartInterruptedWorkflowsTaskTests.cs Fix tenant scope for interrupted workflow restarts (#7389) 2026-04-15 14:11:26 +02:00
TriggerIndexerTests.cs fix(bpmn): let a process with only a plain start event publish (#8081) 2026-09-12 11:07:59 -07:00
WorkflowCommitNotificationBufferTests.cs fix: restore commit notification scope before flush 2026-07-31 04:50:31 +02:00
WorkflowDispatchOutboxProcessorTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00