Tag Archives: Workflow

GetAssociationByBaseId returns null when the workflow association is disabled

This in my opinion is a bug but feel free to disagree. I came across this odditty when checking that workflow associations were enabled before attempting to start the workflow programmatically.

Posted in SharePoint, SharePoint 2007, SharePoint 2010, Tips and Tricks | Tagged , , | Leave a comment

When using the ItemUpdated and ItemAdded events is the only choice you have.

Let me explain by way of an example.  You have implemented a custom insitu EDRMS solution which will set the permissions on an item to ‘Readonly’ when the item’s Item Status column is set to a value of ‘RECORD’.  In making the item … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, Tips and Tricks | Tagged , , , , | Leave a comment

Returning values from built in workflow extended properties using SPBuiltInFieldId

Have you ever tried returning the value of built in workflow extended properties and found yourself grappling with GUIDs.  Try this instead. How to return a Task status value from workflow extended properties. A full list of SPBuiltInFieldIds can be found … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Visualizing a Dynamically Generated Workflow

If you want to see a graphical representation of a dynamically generated workflow then add the following lines to the AddToWorkflow method. The generated xoml file can then be loaded into the VS2005 IDE.

Posted in SharePoint | Tagged , | Leave a comment

Serialisation Errors in Workflows

The primary cause of serialisation (serialization) errors is a reference to a non-serializable object being maintained between workflow events.  What do I mean by this?  Everything that happens in workflow happens within an event handler.  For example when a task … Continue reading

Posted in SharePoint | Tagged , | Leave a comment