The next interesting question is where the lock is released. The ItemUpdated event facilitates this. Zito the task lock is detected in the ItemUpdated event it is routed to the SPWorkflowManager. This manager runs code to dehydrate and startup the workflow( which was persisted to the database while waiting for the task change to occur). The SPWorkflowManager uses the SPWinOeHostServices workflow service to unlock the task datazione con definizione hd the PostWorkItemDequeue method and runs the workflow.