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);
CODE
Remarks
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.