# Class ProcessStatusChangedEventArgs OptimaJet.Workflow.Core.Runtime.ProcessStatusChangedEventArgs Provides event data for [WorkflowRuntime.OnProcessStatusChanged](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) and [WorkflowRuntime.OnProcessStatusChangedAsync](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/). Namespace: [OptimaJet.Workflow.Core.Runtime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/) ```csharp public class ProcessStatusChangedEventArgs : EventArgs ``` ## Type Hierarchy - [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) - ProcessStatusChangedEventArgs Current type ## Constructors `public ProcessStatusChangedEventArgs(Guid processId, bool isSubprocess, ProcessStatus oldStatus, ProcessStatus newStatus)` Initializes a new instance of the [ProcessStatusChangedEventArgs](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ProcessStatusChangedEventArgs/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `processId` | `Guid` | The identifier of the process whose status was changed. | | `isSubprocess` | `Boolean` | A value indicating whether the status change belongs to a subprocess. | | `oldStatus` | `ProcessStatus` | Previous status of the process. | | `newStatus` | `ProcessStatus` | Current status of the process. | ## Properties `public Guid ProcessId { get; }` Gets the identifier of the process whose status was changed. `public bool IsSubprocess { get; }` Gets a value indicating whether the status change belongs to a subprocess. `public ProcessStatus OldStatus { get; }` Gets the previous status of the process. `public ProcessStatus NewStatus { get; }` Gets the current status of the process. `public string SchemeCode { get; }` Gets or sets the code of the process scheme. `public ProcessInstance ProcessInstance { get; }` Gets or sets the process instance associated with the status change. [Previous ProcessHistoryItem](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ProcessHistoryItem/) [Next ProcessStatusWait](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ProcessStatusWait/)