Methods / Methods for Process Instances |
Web Services
Retrieves all the events that have occurred for a specified process instance.
public virtual WFEvent[] GetEventsByProcInstID(string processInstanceID)
Name | Description |
---|---|
processInstanceID |
|
An array of WFEvent objects.
IWFWorkflowService svc = GetWorkflowService(); string processInstanceID = … // process instance ID try { WFEvent[] events = svc.GetEventsByProcInstID(processInstanceID); for (int i = 0; i < events.Length; i++) { Console.WriteLine("Event ID: '" + events[i].EventID + "' "); Console.WriteLine("Event Name: '" + events[i].EventName + "'"); } } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }
3.2.0.4 and higher