elsa-core/test/integration/Elsa.Workflows.IntegrationTests
Sipke Schoorstra a618337923
docs(core): give FaultSignal handlers a working completion path
Review caught that the contract advertised something that cannot work. It
offered handlers three ways to terminalize the faulted activity - cancel,
complete, or reschedule - but CompleteActivityAsync returns immediately unless
the activity is Running, and throughout the handler it is still Faulted, since
recovery runs only after the handler returns. Completing inline did nothing at
all, silently, leaving the child Running.

Measured, same container, handler completing the faulted child:

  inline complete                    -> child Running,   no output, Running/Suspended
  TransitionTo(Running), complete    -> child Completed, "after",   Finished/Finished

So a supported path exists; it just needed writing down. Document it on
FaultSignal, note that it is not licence to call RecoverFromFault (which also
rewrites the fault counts), and note that cancelling and rescheduling need no
equivalent step. Cover it with an integration test asserting that completing the
child with a substitute result fires the container's completion callback and
resumes its sequencing.

Refs #7911

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 22:08:44 +02:00
..
Activities test: refactor with WorkflowTestFixture (#7394) 2026-04-15 14:04:49 +02:00
Api/Bookmarks [codex] Harden initial security remediation slice (#7495) 2026-05-22 00:45:47 +02:00
Core Merge remote-tracking branch 'origin/patch/3.5.4' into release/3.6.0 2025-12-29 20:00:03 +01:00
Evaluation Add Elsa Script DSL (#7076) 2025-11-25 19:57:50 +01:00
GracefulShutdown fix: do not resume interrupted workflows that are already finished (#7435) 2026-05-18 21:19:23 +02:00
Scenarios docs(core): give FaultSignal handlers a working completion path 2026-08-11 22:08:44 +02:00
Security [codex] Harden C# expression host-code execution (#7519) 2026-05-21 00:50:25 +02:00
Serialization Add named WithVariable overload (#7701) 2026-06-08 10:42:59 +02:00
SharedHelpers Refactor commit strategy resolution for improved clarity and efficiency; remove unused example files and add a new CommitTracker helper for testing. 2025-12-16 08:01:49 -05:00
Elsa.Workflows.IntegrationTests.csproj Harden Python expression execution (#7507) 2026-05-20 14:19:47 +02:00
Elsa.Workflows.IntegrationTests.csproj.DotSettings Fix WorkflowExecutionContext bug (#4919) 2024-02-09 19:37:37 +01:00
Usings.cs Refactor Workflow Runtimes (#5444) 2024-06-10 19:36:51 +02:00