locked
Suggestion: throw exception if object is not serializable RRS feed

  • General discussion

  • Hi,

    If creating a long running workflow that is using the SqlWorkflowInstanceStore all of the objects that are included on the workflow (e.g. variables) must be serializable. This is fine and entirely logical. However if an object is not marked serializable then when WF goes to store the workflow it has problems. In particular it just appears to hang and no events on the WorkflowApplication are fired to indicate that there are problems. This makes it difficult to work out what is wrong. It would be much more useful if WF threw an exception indicating the nature of the problem rather than just appearing to hang.

    Thoughts?

    Matt
    Friday, February 5, 2010 9:54 PM