# Class ProcessInstanceTree OptimaJet.Workflow.PostgreSQL.ProcessInstanceTree Namespace: [OptimaJet.Workflow.PostgreSQL](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/) ```csharp public class ProcessInstanceTree : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/DbObject-TEntity/) - ProcessInstanceTree Current type ## Constructors `public ProcessInstanceTree(string schemaName, int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | | | `commandTimeout` | `Int32` | | ## Methods `public Task> GetProcessTreeItemsByRootProcessId(NpgsqlConnection connection, Guid rootProcessId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `rootProcessId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous PostgreSQLProvider](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/PostgreSQLProvider/) [Next WorkflowApprovalHistory](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/WorkflowApprovalHistory/)