CaseManagerGetProcessInfo Method |
Namespace: Law.EdaIntegration.Case
public IEnumerable<ProcessInfo> GetProcessInfo( string caseId )
using Law.EdaIntegration; using Law.EdaIntegration.Case; using Law.EdaIntegration.Process; class Sample { public static void Main() { string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword"; EdaIntegration edaIntegration = new EdaIntegration(); edaIntegration.InitializeEnvironment(connectionString); Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 2"); foreach (ProcessInfo processInfo in edaIntegration.Cases.GetProcessInfo(edaCase.Id)) { Console.WriteLine("Status: {0}", processInfo.Status); Console.WriteLine("Activity: {0}", processInfo.Activity); if (processInfo.RunningCount > 0) { Console.WriteLine("Running Count: {0}", processInfo.RunningCount); if (processInfo.ServiceAgentList != null) { Console.WriteLine("List of Service Agents:"); foreach (var agent in processInfo.ServiceAgentList) { Console.WriteLine(" {0}", agent); } } } Console.WriteLine(); } } } /* This example produces the following results: Status : Active Activity: Inventory Running Count: 2 List of Service Agents: svc://ServerName1:3 svc://ServerName2:5 Status : Pending Activity: NistIdentification Status : Pending Activity: Deduplication Status : Pending Activity: Indexing */