Skip to main content
Skip table of contents

GetProcessesByQuery Method

First Added: GlobalCapture

Queries the MongoDB database for a list of Processes based on a query of combined ProcessFilters.

public List<Process> GetProcessesByQuery(List<ProcessFilter> query, QueryOperator queryOperator)

Classes: Database



List of ProcessFilters combined to make a single query.

QueryOperator queryOperator

Logical operator used to connect the filters of the query.



List of process objects.


The following example demonstrates combining executing a complex query by combining a few ProcessFilters in a list, and passing that list to the GetProcessesByQuery function. This particular query will return GlobalCapture processes from the workflow named "Example Workflow", that have a status of validation, and that have a name property of "John".

var query = new List<ProcessFilter>
    new PropertyFilter("Name", "John", PropertyComparator.Equals),
    new WorkflowNameFilter("Exasmple Workflow"),
    new StatusFilter(ProcessStatus.Validation),
    new ProcessTypeFilter(ProcessType.GlobalCapture)
return databaseHelper.GetProcessesByQuery(query, QueryOperator.And);


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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.