Query Archived Process Instances

API Type

Web Services

Description

Retrieves process instances that match a SQL query.

Syntax

public virtual WFBaseProcessInstance[] QueryArchivedProcInsts(string sqlWhereClause)

Parameters

Name Description

sqlWhereClause

Definition:
The where clause of the SQL statement you want to query.
Type
string
Allowed Values:
The where clause of a SQL statement.

Output

An array of WFBaseProcessInstance objects.

Example

// Build SQL Statement
string processDefinitionName = "Budget Request Approval Process";
string sqlWhereClause = string.Format("DEF_NAME ='{0}'",
processDefinitionName);

try
	{
    WFBaseProcessInstance[] archivedProcessInstances =
    svc.QueryArchivedProcInsts(sqlWhereClause)
	}

catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}

Supported Versions

3.2.0.4 and higher