Assembly: OptimaJet.Workflow.Core

Class RuntimeEntity

OptimaJet.Workflow.Core.Entities.RuntimeEntity

Represents the persistence entity that stores status, liveness, restoration, and distributed timer scheduling data for a workflow runtime.

public class RuntimeEntity : IEntity

Type Hierarchy

  • RuntimeEntity Current type

Properties

public string RuntimeId { get; set; } #
Gets or sets the WorkflowRuntime.Id value of the represented workflow runtime.
public Guid Lock { get; set; } #
Gets or sets the concurrency token used to guard updates to RuntimeEntity.Status and RuntimeEntity.RestorerId.
public RuntimeStatus Status { get; set; } #
Gets or sets the persisted RuntimeStatus value of the workflow runtime.
public string RestorerId { get; set; } #
Gets or sets the WorkflowRuntime.Id value of the workflow runtime assigned to restore the represented runtime.
public DateTime? NextTimerTime { get; set; } #
Gets or sets the next polling time allocated to the workflow runtime for TimerCategory.Timer processing.
public DateTime? NextServiceTimerTime { get; set; } #
Gets or sets the next polling time allocated to the workflow runtime for TimerCategory.ServiceTimer processing.
public DateTime? LastAliveSignal { get; set; } #
Gets or sets the date and time of the most recent alive signal recorded for the workflow runtime.

Methods

public object GetValue(string key) #
Gets the value of the property identified by key.

Parameters

Returns

Type
Description
Object
The value of the property 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 key.

Parameters

Name
Type
Description
value
Object
The value to assign. RuntimeEntity.Lock requires a Guid, and RuntimeEntity.Status requires a RuntimeStatus. For the remaining properties, an incompatible value is assigned as null.

Exceptions

Type
Description
ColumnNotExistsException
key does not identify a supported property.
InvalidCastException
key identifies RuntimeEntity.Lock or RuntimeEntity.Status, and value is not null and has an incompatible type.
NullReferenceException
key identifies RuntimeEntity.Lock or RuntimeEntity.Status, and value is null.