Assembly: OptimaJet.Workflow.Core

Class ProcessStatus

OptimaJet.Workflow.Core.Persistence.ProcessStatus

Represents the lifecycle stage of a process.

public sealed class ProcessStatus

Properties

public byte Id { get; } #

Gets the numeric identifier persisted by IPersistenceProvider implementations for this status.

public string Name { get; } #

Gets the symbolic name of this 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; } #

Fields

public static readonly ProcessStatus NotFound #

Represents the result returned by IPersistenceProvider.GetInstanceStatusAsync(Guid) when persistence contains no status record for a process.

public static readonly ProcessStatus Unknown #

Represents the result returned by IPersistenceProvider.GetInstanceStatusAsync(Guid) 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<ProcessStatus> All #

Contains the recognized persisted ProcessStatus values.

Remarks

The collection excludes ProcessStatus.NotFound and ProcessStatus.Unknown, which represent lookup results rather than persisted lifecycle statuses.