# Class ProcessTimerEntity OptimaJet.Workflow.Core.Entities.ProcessTimerEntity Represents a persistence entity that stores a scheduled [TimerDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TimerDefinition/) for an [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). Namespace: [OptimaJet.Workflow.Core.Entities](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/) ```csharp public class ProcessTimerEntity : IEntity ``` ## Type Hierarchy - ProcessTimerEntity Current type - Implemented interfaces - [IEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/IEntity/) ## Properties `public Guid Id { get; set; }` Gets or sets the persisted timer identifier. `public Guid ProcessId { get; set; }` Gets or sets the identifier of the process instance that owns the timer, as exposed by [ProcessInstance.ProcessId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). `public Guid RootProcessId { get; set; }` Gets or sets the identifier of the root process instance in the owning process tree, as exposed by [ProcessInstance.RootProcessId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). `public string Name { get; set; }` Gets or sets the persisted timer name corresponding to [BaseDefinition.Name](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/BaseDefinition/) on the scheduled [TimerDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TimerDefinition/). `public DateTime NextExecutionDateTime { get; set; }` Gets or sets the date and time at which the persisted timer is next scheduled to execute. `public bool Ignore { get; set; }` Gets or sets a value indicating whether the timer is excluded from selection for execution. `public string TenantId { get; set; }` Gets or sets the tenant identifier associated with the owning process instance, as exposed by [ProcessInstance.TenantId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). ## Methods `public object GetValue(string key)` Gets the value of the property identified by the specified key. ### Parameters | Name | Type | Description | | --- | --- | --- | | `key` | `String` | The name of a supported public property declared by [ProcessTimerEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/). | ### Returns | Type | Description | | --- | --- | | `Object` | The property value identified by `key`. | ### Exceptions | Type | Description | | --- | --- | | `ColumnNotExistsException` | `key` does not identify a supported property. | `public void SetValue(string key, object value)` Sets the value of the property identified by the specified key. ### Parameters | Name | Type | Description | | --- | --- | --- | | `key` | `String` | The name of a supported public property declared by [ProcessTimerEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/). | | `value` | `Object` | The value to assign to the property identified by `key`. The expected type is [Guid](https://learn.microsoft.com/dotnet/api/system.guid) for [ProcessTimerEntity.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/), [ProcessTimerEntity.ProcessId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/), and [ProcessTimerEntity.RootProcessId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/); [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) for [ProcessTimerEntity.NextExecutionDateTime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/); [bool](https://learn.microsoft.com/dotnet/api/system.boolean) for [ProcessTimerEntity.Ignore](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/); and [string](https://learn.microsoft.com/dotnet/api/system.string) for [ProcessTimerEntity.Name](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/) and [ProcessTimerEntity.TenantId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTimerEntity/). | ### Exceptions | Type | Description | | --- | --- | | `ColumnNotExistsException` | `key` does not identify a supported property. | [Previous ProcessSchemeEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessSchemeEntity/) [Next ProcessTransitionHistoryEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessTransitionHistoryEntity/)