# Class ProcessStatus OptimaJet.Workflow.Core.Persistence.ProcessStatus Represents the lifecycle stage of a process. Namespace: [OptimaJet.Workflow.Core.Persistence](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/) ```csharp public sealed class ProcessStatus ``` ## Properties `public byte Id { get; }` Gets the numeric identifier persisted by [IPersistenceProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/IPersistenceProvider/) implementations for this status. `public string Name { get; }` Gets the symbolic name of this [ProcessStatus](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/). `public bool IsAllowedToChangeStatus { get; set; }` Gets or sets a value indicating whether a process in this status may change to another status. `public bool IsAllowedToExecuteCommand { get; set; }` Gets or sets a value indicating whether commands may be executed for a process in this status. `public bool IsNotRunning { get; }` Gets a value indicating whether the status is [ProcessStatus.Error](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/), [ProcessStatus.Finalized](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/), [ProcessStatus.Idled](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/), or [ProcessStatus.Terminated](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/). ## Fields `public static readonly ProcessStatus NotFound` Represents the result returned by [IPersistenceProvider.GetInstanceStatusAsync(Guid)](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/IPersistenceProvider/) when persistence contains no status record for a process. `public static readonly ProcessStatus Unknown` Represents the result returned by [IPersistenceProvider.GetInstanceStatusAsync(Guid)](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/IPersistenceProvider/) when a persisted status identifier is not recognized. `public static readonly ProcessStatus Initialized` Represents a process that has been created and initialized but has not started execution. `public static readonly ProcessStatus Running` Represents a process whose execution is in progress. `public static readonly ProcessStatus Idled` Represents a process that is not executing and is waiting for a command, timer, or API operation. `public static readonly ProcessStatus Finalized` Represents a process whose execution has stopped at an activity marked as final. ### Remarks A final activity can have outgoing transitions. The process can remain in this status while waiting for a trigger associated with one of those transitions and continue when the trigger occurs. `public static readonly ProcessStatus Terminated` Represents a process whose execution stopped after an error with no command transition or active timer available for continuation. `public static readonly ProcessStatus Error` Represents a process whose execution encountered an error but can continue through a command transition or active timer. `public static readonly IEnumerable All` Contains the recognized persisted [ProcessStatus](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/) values. ### Remarks The collection excludes [ProcessStatus.NotFound](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/) and [ProcessStatus.Unknown](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessStatus/), which represent lookup results rather than persisted lifecycle statuses. [Previous ProcessInstanceItem](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/ProcessInstanceItem/) [Next SchemeFilePersistence](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Persistence/SchemeFilePersistence/)