# Class WorkflowScheme OptimaJet.Workflow.Oracle.WorkflowScheme Namespace: [OptimaJet.Workflow.Oracle](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle/) ```csharp public class WorkflowScheme : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle/DbObject-TEntity/) - WorkflowScheme Current type ## Constructors `public WorkflowScheme(string schemaName, int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | | | `commandTimeout` | `Int32` | | ## Methods `public Task SelectByCodeAsync(OracleConnection connection, string code, string tenantId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `code` | `String` | | | `tenantId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SelectByCodeExactAsync(OracleConnection connection, string code, string tenantId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `code` | `String` | | | `tenantId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public override Task UpsertAsync(OracleConnection connection, SchemeEntity entity, OracleTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `entity` | `SchemeEntity` | | | `transaction` | `OracleTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SelectAllWorkflowSchemesWithPagingAsync(OracleConnection connection, List<(string parameterName, SortDirection sortDirection)> orderParameters, Paging paging)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `orderParameters` | `List` | | | `paging` | `Paging` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> GetInlinedSchemeCodesAsync(OracleConnection connection, string tenantId = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `tenantId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> GetRelatedSchemeCodesAsync(OracleConnection connection, string schemeCode, string tenantId = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `schemeCode` | `String` | | | `tenantId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> GetSchemeCodesByTagsAsync(OracleConnection connection, string tenantId, IEnumerable tags)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `tenantId` | `String` | | | `tags` | `IEnumerable` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task AddSchemeTagsAsync(OracleConnection connection, string schemeCode, string tenantId, IEnumerable tags, IWorkflowBuilder builder)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `schemeCode` | `String` | | | `tenantId` | `String` | | | `tags` | `IEnumerable` | | | `builder` | `IWorkflowBuilder` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task RemoveSchemeTagsAsync(OracleConnection connection, string schemeCode, string tenantId, IEnumerable tags, IWorkflowBuilder builder)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `schemeCode` | `String` | | | `tenantId` | `String` | | | `tags` | `IEnumerable` | | | `builder` | `IWorkflowBuilder` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SetSchemeTagsAsync(OracleConnection connection, string schemeCode, string tenantId, IEnumerable tags, IWorkflowBuilder builder)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `schemeCode` | `String` | | | `tenantId` | `String` | | | `tags` | `IEnumerable` | | | `builder` | `IWorkflowBuilder` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous WorkflowProcessTransitionHistory](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle/WorkflowProcessTransitionHistory/) [Next Migration100WorkflowProcessTimerIndexNextExecutionDateTime](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle.Migrations/Migration100WorkflowProcessTimerIndexNextExecutionDateTime/)