Serialization of Exceptions in Workflow Manager

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric





Note that when using workflows with Variables of type Exception, you might run into serialization issues. This is usually not a general Workflow problem. However if you use persistence feature, workflow host with enforce serialization of all variables in the workflow. Because Exception is not by default a serializable type, the workflow will fail in the moment of serialization.

The things are getting even worse if you use Workflow Manager as a host. For all of you SharePoint developers, this is always the problem, because SharePoint Workflows are by default serializable.

Here is what you can do before activity which cause the workflow to be persisted:


Workflow is persisted when Persists activity, Delay Activity or any other listener (wait on message) activity is started and the host is Workflow Manager.
In a case of AppFabric server as host, things looks a bit different.

Posted Nov 16 2012, 10:03 PM by Damir Dobric is a .Net Community Blog powered by daenet GmbH.