I wrote some code to get all workflow process from all user using CWS and C#. But, I just get admin user workflow process only. The target is the same like we change option Show -> System in web client.
Here my code:
OTCS_Workflow.WorkflowServiceClient workflowClient = new OTCS_Workflow.WorkflowServiceClient();
OTCS_Workflow.ProcessSearchOptions options = new OTCS_Workflow.ProcessSearchOptions();
OTCS_Workflow.ProcessResult result = workflowClient.GetListProcessesResults(ref wkOTAuth, workflowClient.ListProcesses(ref wkOTAuth, options));
foreach (OTCS_Workflow.ProcessInstance pi in result.Processes)
{
Console.WriteLine(pi.ProcessID + "-" + pi.Title + " - " + pi.InitiatedDate);
}
Any idea or i just miss some code?
Another question, how to filter based on intiatedate? So on next run, I just get new workflow process only.
Thanks and Regards,
Andreas