/
GetProcessesByStatus Method

GetProcessesByStatus Method

First Added: GlobalCapture 2.3.0.124


Queries the MongoDB database for a list of Processes of a specific status.

public List<Process> GetProcessesByStatus(ProcessStatus status)

Classes: Database


Parameters

string status

ProcessStatus of the processes to match.

Returns

List<Process>

List of process objects.


Example

The following example demonstrates getting a list of processes based on a specific process status. The query targets all processes that are currently in validation.

var processes = Database.GetProcessesByStatus(ProcessStatus.Validation);

Remarks

If the parameters result in zero Processes found, an empty list will be returned.

Related content

GetProcessesByQuery Method
GetProcessesByQuery Method
More like this
GetProcessesByProperty Method
GetProcessesByProperty Method
More like this
GetProcessesByWorkflowName Method
GetProcessesByWorkflowName Method
More like this
GetProcessById Method
GetProcessById Method
More like this
StatusFilter Class
StatusFilter Class
More like this
StatusFilter(ProcessStatus) Constructor
StatusFilter(ProcessStatus) Constructor
More like this