Workflow Management Samples

This section contains some sample code showing how to interact with the workflow management assembly (SourceCode.Workflow.Management.dll)

Sample Project
You can download a sample Visual Studio project that illustrates basic use of the Workflow Management API from here: K2Documentation.Samples.WorkflowRuntime.WorkflowManagementAPI (on GitHub).The sample project is provided for demonstration purposes only. It is not supported by K2 product support and is not intended to be used as-is in production environments.

Code Samples

Code Sample Description
Retry Workflow Errors Demonstrates how to retry workflows in Error state using Code
Calculate an End Date, taking working hours into account Shows how to calculate working hours zones
Delegate or Un-delegate a Worklistitem Demonstrates how to Delegate or Undelegate workflist items between users
Setting permissions on a workflow How to set the permissions on a process
Working with the management (global) Worklist In this example, the global worklist that is available in the Workspace Management Console is accessed.
Live Instance Management Explains how to use the Live Instance Management features to migrate active, in-flight processes from one version of the workflow definition to a different version of the workflow definition