Update K2 DataField Of A Process Instance

This article shows how to update the DataField of a worklist item (process instance) without finishing the current event.

Reference
SourceCode.Workflow.Client

Code
WorklistItem item = [...]; item.ProcessInstance.DataFields["My Data Field"].Value = "Some Value"; item.ProcessInstance.Update;