Click or drag to resize

CaseManagerGetProcessInfo Method

Retrieve the active and pending processes for a case

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public IEnumerable<ProcessInfo> GetProcessInfo(
	string caseId
)

Parameters

caseId
Type: SystemString
The unique identifier of the case

Return Value

Type: IEnumerableProcessInfo
Process information
Examples
This example demonstrates retrieving active and pending processes for a case and printing the details to the system console.
C#
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
     */
See Also