# Class ProcessInstanceStatusEntity OptimaJet.Workflow.Core.Entities.ProcessInstanceStatusEntity Represents the persistence entity that stores [ProcessStatus](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/) information and status-update metadata for a process instance. Namespace: [OptimaJet.Workflow.Core.Entities](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/) ```csharp public class ProcessInstanceStatusEntity : IEntity ``` ## Type Hierarchy - ProcessInstanceStatusEntity 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 process instance identifier exposed by [ProcessInstance.ProcessId](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). `public Guid Lock { get; set; }` Gets or sets the concurrency token used to guard updates to [ProcessInstanceStatusEntity.Status](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceStatusEntity/). `public byte Status { get; set; }` Gets or sets the persisted status value represented by [ProcessStatus.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/). `public string RuntimeId { get; set; }` Gets or sets the persisted [WorkflowRuntime.Id](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) value recorded when [ProcessInstanceStatusEntity.Status](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceStatusEntity/) was set. `public DateTime SetTime { get; set; }` Gets or sets the date and time when [ProcessInstanceStatusEntity.Status](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceStatusEntity/) was set. `public string TenantId { get; set; }` Gets or sets the persisted value 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 [ProcessInstanceStatusEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceStatusEntity/). | ### 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 [ProcessInstanceStatusEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceStatusEntity/). | | `value` | `Object` | The value to assign to the property identified by `key`. | ### Exceptions | Type | Description | | --- | --- | | `ColumnNotExistsException` | `key` does not identify a supported property. | [Previous ProcessInstancePersistenceEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstancePersistenceEntity/) [Next ProcessInstanceTreeItem](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/ProcessInstanceTreeItem/)