Windows Workflow gotcha

10/23/12

Windows Workflow gotcha

Boolean properties cannot be promoted in Windows Workflow Foundation (WF) 4. If you attempt to promote them, your workflow will appear to start but will not be properly persisted nor work properly. In effect, it will die silently. Client applications attempting to create workflows won’t see any errors. Only a few simple types are supported.

This took us about two man-days to debug. Apparently Microsoft couldn’t be bothered to map between Boolean and BIT, or to document this on MSDN, or to return an exception to the client…

Here’s the Microsoft link:

InstancePersistenceException error when you promote certain property types by using Sql Workflow Instance Store in Windows Workflow Foundation 4.0

Thanks to The Problem Solver (Maurice on Stack Overflow) for pointing us in the right direction!


Your Host: webmaster@truewill.net
Copyright © 2000-2013 by William Sorensen. All rights reserved.