# Class ProcessInstance OptimaJet.Workflow.Api.Models.ProcessInstance Process Instance. Namespace: [OptimaJet.Workflow.Api.Models](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/) ```csharp public record ProcessInstance : IEquatable ``` ## Type Hierarchy - ProcessInstance Current type - Implemented interfaces - [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1) ## Constructors ### `[JsonConstructor] [JsonConstructor] public ProcessInstance(string currentActivityName, string schemeCode, ParameterDefinitionWithValue[] processParameters)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `currentActivityName` | `String` | | | `schemeCode` | `String` | | | `processParameters` | `ParameterDefinitionWithValue[]` | | ## Properties ### `public Guid ProcessId { get; init; }` Gets the process id value. ### `public Guid? ParentProcessId { get; init; }` Gets the parent process id value. ### `public Guid RootProcessId { get; init; }` Gets the root process id value. ### `public Guid SchemeId { get; init; }` Gets the scheme id value. ### `public string? PreviousState { get; init; }` Gets the previous state value. ### `public string? PreviousStateForDirect { get; init; }` Gets the previous state for direct value. ### `public string? PreviousStateForReverse { get; init; }` Gets the previous state for reverse value. ### `public string? PreviousActivityName { get; init; }` Gets the previous activity name value. ### `public string? PreviousActivityForDirectName { get; init; }` Gets the previous activity for direct name value. ### `public string? PreviousActivityForReverseName { get; init; }` Gets the previous activity for reverse name value. ### `public string CurrentActivityName { get; init; }` Gets the current activity name value. ### `public string SchemeCode { get; init; }` Gets the scheme code value. ### `public string? CurrentState { get; init; }` Gets the current state value. ### `public string? TenantId { get; init; }` Gets the tenant id value. ### `public string? IdentityId { get; init; }` Gets the identity id value. ### `public string? ImpersonatedIdentityId { get; init; }` Gets the impersonated identity id value. ### `public string? SubprocessName { get; init; }` Gets the subprocess name value. ### `public DateTime CreationDate { get; init; }` Gets the creation date value. ### `public DateTime? LastTransitionDate { get; init; }` Gets the last transition date value. ### `public bool LogEnabled { get; init; }` Gets the log enabled value. ### `public string? CalendarName { get; init; }` Gets the calendar name value. ### `public bool IsSchemeObsolete { get; init; }` Gets the is scheme obsolete value. ### `public bool IsSubprocess { get; init; }` Gets the is subprocess value. ### `public ParameterDefinitionWithValue[] ProcessParameters { get; init; }` Gets the process parameters value. ### `public string? LocalizedCurrentState { get; init; }` Gets the localized value of the original name using the request culture. ### `public string? LocalizedPreviousState { get; init; }` Gets the localized value of the original name using the request culture. ### `public string? LocalizedPreviousStateForDirect { get; init; }` Gets the localized value of the original name using the request culture. ### `public string? LocalizedPreviousStateForReverse { get; init; }` Gets the localized value of the original name using the request culture. [Previous ProcessIdRequest](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/ProcessIdRequest/) [Next ProcessInstancesTree](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/ProcessInstancesTree/)