Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
First Added: GlobalCapture 2.3.0.124


Excerpt

Queries the MongoDB database for a list of Processes from a specific workflow.


Code Block
public List<Process> GetProcessesByWorkflowName(string workflowName)

Classes: Database


Parameters

string workflowName

Name of the matching workflow.

Returns

List<Process>

List of process objects.


Example

The following example demonstrates getting a list of properties based on processes from a specific process statusworkflow by name. The query targets all processes that are currently in validationfrom a workflow named "Example Workflow".

Code Block
var processes = Database.GetProcessesByStatus(ProcessStatus.ValidationGetProcessesByWorkflowName("Example Workflow");

Remarks

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