asked 8 hours ago

I'm validating a signed .NET Framework 4.8 custom activity on an isolated test VM. Both Workflow Server and Workflow Designer are version 12.0.2605.385.

My acceptance test, needs to verify recovery when the activity’s Finalize step fails while writing an output token. Finalize runs as a CustomSingleEntryActivity. By the time it runs, Initialize and AppendRow have already stored the table state.

Is there a supported Workflow SDK harness or vendor-approved procedure that lets us:

  1. Force a one-time failure in ActivityExecutionContext.SetToken during Finalize, first on the HTML output write and, in a separate run, on a later counter write.
  2. Inspect the retained table state after the failure, including whether Workflow retains or rolls back any outputs already written.
  3. Retry only Finalize in the same Workflow instance, without rerunning Initialize or AppendRow, and verify that the retry produces one complete HTML table with the original rows and counts, without duplicate output.

The procedure must use the unmodified signed DLL and must not require rebooting. My offline regression tests pass, but they don’t establish how the Workflow host handles token writes and recovery.

If Workflow 12 does not support this kind of fault injection or same-instance retry for a CustomSingleEntryActivity, please confirm that limitation and let me know whether you recommend another supported way to validate this behavior.

0 0