/
GetProcessesByProperty Method

GetProcessesByProperty Method

Queries the MongoDB database for a list of Processes that satisfy a property match.

public List<Process> GetProcessesByProperty(string propertyName, string propertyValue, PropertyComparator condition)

Classes: Database


Parameters

string propertyName

Name of the property to match.

string propertyValue

Value of the property to match.

PropertyComparator comparator

PropertyComparator to use for the property value comparison.

Returns

List<Process>

List of process objects.


Example

The following example demonstrates getting a list of processes based on a specific property value. The query targets all processes that contain the property "Company Name", and with a specific property value of "Square 9 Softworks".

var processes = Database.GetProcessesByProperty("Company Name", "Square 9 Softworks", PropertyComparator.Equals);

Remarks

The PropertyComparator enum enables a variety of different logical comparisons between property values.

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

Related content

GetProcessesByStatus Method
GetProcessesByStatus Method
More like this
GetProcessesByQuery Method
GetProcessesByQuery Method
More like this
GetProcessesByWorkflowName Method
GetProcessesByWorkflowName Method
More like this
GetProcessById Method
GetProcessById Method
More like this
QueryOperator Enum
QueryOperator Enum
More like this
PropertyComparator Enum
PropertyComparator Enum
More like this