// This is console application sample
IWFWorkflowService svc = GetWorkflowService();
string processInstanceID = ..//"02C3FA88ADE04750A34B5B3168C25793";
try
{
WFBaseActivityInstance[] activityInstance =
svc.GetActivityInstsByPIID(processInstanceID);
foreach (WFBaseActivityInstance activity in activityInstance)
{
System.Console.WriteLine("Activity DispalyName: '{0}'", activity.DisplayName);
System.Console.WriteLine("CompletedDate: '{0}'", activity.CompletedDate);
}
}
catch( Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex) );
}