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.
Namespace: OptimaJet.Workflow.Core.Entities
public class RuntimeEntity : IEntityType Hierarchy
- RuntimeEntity Current type
- Implemented interfaces
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
Name
Type
Description
keyStringReturns
Type
Description
ObjectThe value of the property identified by
key.Exceptions
Type
Description
ColumnNotExistsExceptionkey 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
keyStringvalueObjectThe 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
ColumnNotExistsExceptionkey does not identify a supported property.InvalidCastExceptionkey identifies RuntimeEntity.Lock or RuntimeEntity.Status, and value is not null and has an incompatible type.NullReferenceException