My resolution is to add a simple property to my WF class. What it will do is ensure that I always load up the SPListItem every time I need it.
private SPListItem WorkflowItem { get { SPDocumentLibrary library = (SPDocumentLibrary)WorkflowProperties.Web.Lists[WorkflowProperties.ListId]; return library.GetItemById(WorkflowProperties.ItemId); } }
There are many suggestions about how to fix this problem, but this one did it for me.
No comments:
Post a Comment