Create K2 Process Instance

Example of how to start a new instance of already existing and deployed K2 process.

Reference
SourceCode.Workflow.Client

Code
// Create a K2 connection Connection connection = [...]; // Create instance ProcessInstance processInstance = connection.CreateProcessInstance("FolderNameGoesHere\ProcessNameGoesHere"); processInstance.Folio = "Some folio"; processInstance.DataFields["FieldNameGoesHere"].Value = "Some value"; // Start the instance connection.StartProcessInstance(processInstance);