Class ProcessSchemeEntity
OptimaJet.Workflow.Core.Entities.ProcessSchemeEntity
Represents a persistence entity that stores a serialized process scheme and the metadata used to create a ProcessDefinition.
Namespace: OptimaJet.Workflow.Core.Entities
public class ProcessSchemeEntity : IEntityType Hierarchy
- ProcessSchemeEntity Current type
- Implemented interfaces
Properties
public Guid Id { get; set; } #Gets or sets the persisted process scheme identifier exposed by ProcessDefinition.Id.
public bool IsObsolete { get; set; } #Gets or sets a value indicating whether the process scheme is obsolete, as exposed by ProcessDefinition.IsObsolete.
public string SchemeCode { get; set; } #Gets or sets the process scheme code exposed by BaseDefinition.Name.
public string Scheme { get; set; } #Gets or sets the serialized representation of the process scheme.
public Guid? RootSchemeId { get; set; } #Gets or sets the root process scheme identifier for a subprocess scheme, as exposed by ProcessDefinition.RootSchemeId.
public string RootSchemeCode { get; set; } #Gets or sets the root process scheme code for a subprocess scheme, as exposed by ProcessDefinition.RootSchemeCode.
public string AllowedActivities { get; set; } #Gets or sets the JSON-serialized collection of activity names exposed by ProcessDefinition.AllowedActivities.
public string StartingTransition { get; set; } #Gets or sets the name of the transition that started the subprocess, as exposed by ProcessDefinition.StartingTransition.
public string TenantId { get; set; } #Gets or sets the tenant identifier associated with the process scheme, as exposed by ProcessDefinition.TenantId, or null for a shared process scheme.
Methods
public object GetValue(string key) #Gets the value of the property identified by
key.Parameters
Name
Type
Description
Returns
Type
Description
ObjectThe value of the property selected by
key.Exceptions
Type
Description
ColumnNotExistsExceptionkey does not match the name of a supported property.public void SetValue(string key, object value) #Sets the value of the property identified by
key.Parameters
Name
Type
Description
valueObjectThe value to assign. Values for ProcessSchemeEntity.Id and ProcessSchemeEntity.IsObsolete must be a Guid and a bool, respectively. A value for ProcessSchemeEntity.RootSchemeId that is not a Guid, or a value for a supported string property that is not a string, is assigned as null.
Exceptions
Type
Description
ColumnNotExistsExceptionkey does not match the name of a supported property.InvalidCastExceptionkey identifies ProcessSchemeEntity.Id or ProcessSchemeEntity.IsObsolete, and value is not null and does not have the required type.NullReferenceException