Methods / Process Definition Methods |
// This is console application IWFWorkflowService svc = GetWorkflowService(); //Base process definition ID. string baseprocessInstanceID = … // for example "1e3d514d43d3465cae6ec3bbbd409168"; try { //Returns Array of WFBaseProcessDefinition for all versions of process definition WFBaseProcessDefinition[] processDefinitions = svc.GetProcDefByBasePID(baseprocessInstanceID); for (int i = 0; i < processDefinitions.Length; i++) { Console.WriteLine("Definition ID: '" + processDefinitions[i].DefID + "' "); Console.WriteLine("Definition Name: '" + processDefinitions[i].DefName + "' "); } } catch (Exception ex) { Console.WriteLine(ShUtil.GetSoapMessage(ex)); }